From 37a595244b9c340ce003fd581551548d6dd6c5bd Mon Sep 17 00:00:00 2001 From: Tyler Collins Date: Fri, 24 Aug 2018 13:37:45 -1000 Subject: [PATCH] Fix type for max & min validators Max and min validator property args takes `number[]` not `number`. See https://github.com/sequelize/sequelize/issues/7815 . --- lib/model.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/model.d.ts b/lib/model.d.ts index f472bf3..2525c4c 100644 --- a/lib/model.d.ts +++ b/lib/model.d.ts @@ -960,12 +960,12 @@ export interface ModelValidateOptions { /** * only allow values */ - max?: number | { msg: string; args: number } + max?: number | { msg: string; args: number[] } /** * only allow values >= 23 */ - min?: number | { msg: string; args: number } + min?: number | { msg: string; args: number[] } /** * only allow arrays