Skip to content

Commit

Permalink
Refactor a test
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammad0-0ahmad committed Jul 4, 2022
1 parent 99aaba0 commit 5f9f79c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/types/schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,11 @@ function gh12030() {
]
});

// expectType<{ users: string[] }>({} as InferSchemaType<typeof Schema1>);
expectType<{
users: {
username?: string
}[];
}>({} as InferSchemaType<typeof Schema1>);

const Schema2 = new Schema({
createdAt: { type: Date, default: Date.now }
Expand Down

0 comments on commit 5f9f79c

Please sign in to comment.