From e91b1be992f98e870b7c382a3573578f6cc38c3a Mon Sep 17 00:00:00 2001 From: bananabr Date: Tue, 11 Jul 2017 12:14:21 -0300 Subject: [PATCH] #feature: included validate() fields option included validate() fields option according to docs.sequelizejs.com/class/lib/model.js~Model.html#instance-method-validate --- 4/lib/model.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/4/lib/model.d.ts b/4/lib/model.d.ts index fa039c8..1e83497 100644 --- a/4/lib/model.d.ts +++ b/4/lib/model.d.ts @@ -2518,9 +2518,9 @@ export interface Instance { * Emits null if and only if validation successful; otherwise an Error instance containing * { field name : [error msgs] } entries. * - * @param options.skip An array of strings. All properties that are in this array will not be validated + * @param options Options that are passed to the validator */ - validate(options?: { skip?: string[] }): Promise; + validate(options?: { skip?: string[], fields?: string[] }): Promise; /** * This is the same as calling `set` and then calling `save`.