From d7ea6529f63b22def063be0cfc01ac64bab9f01c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=20G=C3=A1mez=20Franco?= Date: Thu, 18 May 2017 03:56:44 +0200 Subject: [PATCH] Add `discriminatorKey` to `SchemaOptions` interface. --- types/mongoose/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index 5a2a0abfe1..42e3ca3742 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -696,6 +696,8 @@ declare module "mongoose" { capped?: boolean; /** no default */ collection?: string; + /** defaults to "__t" */ + discriminatorKey?: string; /** defaults to false. */ emitIndexErrors?: boolean; /** defaults to true */