From 14511c43d307c053cb6343dfebd01c6fdc5ad3a3 Mon Sep 17 00:00:00 2001 From: moander Date: Sat, 13 Feb 2021 19:27:33 +0100 Subject: [PATCH] SchemaTypeOptions.type is optional type must be optional to support schemas using the `typeKey` option. --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index e349d0cd652..5576770d296 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1365,7 +1365,7 @@ declare module 'mongoose' { } interface SchemaTypeOptions { - type: T; + type?: T; /** Defines a virtual with the given name that gets/sets this path. */ alias?: string;