This commit is contained in:
tamaina
2023-05-21 16:35:48 +00:00
parent 307bc2a38e
commit d7d3f00488
5 changed files with 10 additions and 96 deletions

View File

@@ -1,10 +1,9 @@
import { Packed, Def } from '../src/schemas';
// import { expectType } from 'tsd';
import { expectType } from 'tsd';
describe('schemas', () => {
test('user', () => {
type UserLite = Packed<'UserLite'>;
/* Error: is declared too wide for argument type
expectType<UserLite>({
id: 'string',
name: null,
@@ -18,7 +17,6 @@ describe('schemas', () => {
isCat: false,
onlineStatus: null,
});
*/
type UserDetailedNotMeOnly = Packed<'UserDetailedNotMeOnly'>;
type UserDetailedNotMe = Packed<'UserDetailedNotMe'>;
type MeDetailed = Packed<'MeDetailed'>;
@@ -42,6 +40,7 @@ describe('schemas', () => {
});
test('notification', () => {
type Notification = Packed<'Notification'>;
type NotificationStrict = Packed<'NotificationStrict'>;
});
test('drive file', () => {
type DriveFile = Packed<'DriveFile'>;