From 41c1ba2436b475b70f6db7964be45cfd29ade9cd Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 8 Nov 2018 09:24:35 -0600 Subject: [PATCH] added findByPk function to Model def added findByPk function to Model definition --- types/sequelize/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/sequelize/index.d.ts b/types/sequelize/index.d.ts index f80d5acc40..88ed87efae 100644 --- a/types/sequelize/index.d.ts +++ b/types/sequelize/index.d.ts @@ -3908,6 +3908,7 @@ declare namespace sequelize { */ findById(identifier?: number | string | Buffer, options?: FindOptions): Promise; findByPrimary(identifier?: number | string | Buffer, options?: FindOptions): Promise; + findByPk(identifier?: number | string | Buffer, options?: FindOptions): Promise; /** * Search for a single instance. This applies LIMIT 1, so the listener will always be called with a single