From 8a9e47ea0734aa74b6407fad3895449926c324ec Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Wed, 21 Mar 2018 11:16:20 +0200 Subject: [PATCH] Added Buffer type as identifier in findByPrimary --- lib/model.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/model.d.ts b/lib/model.d.ts index f472bf3..0b8d3a4 100644 --- a/lib/model.d.ts +++ b/lib/model.d.ts @@ -1643,22 +1643,22 @@ export abstract class Model { */ public static findById( this: { new (): M } & typeof Model, - identifier?: number | string, + identifier?: number | string | Buffer, options?: FindOptions ): Promise public static findById( this: { new (): M } & typeof Model, - identifier: number | string, + identifier: number | string | Buffer, options: NonNullFindOptions ): Promise public static findByPrimary( this: { new (): M } & typeof Model, - identifier?: number | string, + identifier?: number | string | Buffer, options?: FindOptions ): Promise public static findByPrimary( this: { new (): M } & typeof Model, - identifier: number | string, + identifier: number | string | Buffer, options: NonNullFindOptions ): Promise