From 5f9f79c224e2df6a9c5c5ba0ab80a5991ec8cafe Mon Sep 17 00:00:00 2001 From: mohammad0-0ahmad Date: Mon, 4 Jul 2022 01:38:46 +0200 Subject: [PATCH] Refactor a test --- test/types/schema.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 }