diff --git a/test/types/schema.test.ts b/test/types/schema.test.ts index 9006dcffa9c..082e576ab08 100644 --- a/test/types/schema.test.ts +++ b/test/types/schema.test.ts @@ -640,7 +640,11 @@ function gh12030() { ] }); - // expectType<{ users: string[] }>({} as InferSchemaType); + expectType<{ + users: { + username?: string + }[]; + }>({} as InferSchemaType); const Schema2 = new Schema({ createdAt: { type: Date, default: Date.now }