Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(types): allow any values in isIn validator
  • Loading branch information
lukashroch committed Jan 20, 2021
commit 0dd9c09ab0c860c8e8acb36bb8d1da2d42dd7d3b
6 changes: 3 additions & 3 deletions types/lib/model.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1093,13 +1093,13 @@ export interface ModelValidateOptions {
/**
* check the value is not one of these
*/
notIn?: ReadonlyArray<readonly string[]> | { msg: string; args: ReadonlyArray<readonly string[]> };
notIn?: ReadonlyArray<readonly any[]> | { msg: string; args: ReadonlyArray<readonly any[]> };

/**
* check the value is one of these
*/
isIn?: ReadonlyArray<readonly string[]> | { msg: string; args: ReadonlyArray<readonly string[]> };

isIn?: ReadonlyArray<readonly any[]> | { msg: string; args: ReadonlyArray<readonly any[]> };
/**
* don't allow specific substrings
*/
Expand Down