diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-03-02 15:25:27 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-03-02 15:25:34 +0900 |
| commit | 168039e68299029b11161b53f90cc103788c0cd3 (patch) | |
| tree | 93210872f0712bd77dca679ed9a5819148c0acec /src/api/validator.ts | |
| parent | typo (diff) | |
| download | misskey-168039e68299029b11161b53f90cc103788c0cd3.tar.gz misskey-168039e68299029b11161b53f90cc103788c0cd3.tar.bz2 misskey-168039e68299029b11161b53f90cc103788c0cd3.zip | |
:v:
Diffstat (limited to 'src/api/validator.ts')
| -rw-r--r-- | src/api/validator.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/validator.ts b/src/api/validator.ts index bc50da3a37..3f1678e35d 100644 --- a/src/api/validator.ts +++ b/src/api/validator.ts @@ -10,8 +10,8 @@ function validate(value: any, type: 'string', isRequired?: boolean, validator?: function validate(value: any, type: 'number', isRequired?: boolean, validator?: Validator<number>): [number, string]; function validate(value: any, type: 'boolean', isRequired?: boolean): [boolean, string]; function validate(value: any, type: 'array', isRequired?: boolean, validator?: Validator<any[]>): [any[], string]; -function validate(value: any, type: 'set', isRequired?: boolean, validator?: Validator<Set<any>>): [Set<any>, string]; -function validate(value: any, type: 'object', isRequired?: boolean, validator?: Validator<Object>): [Object, string]; +function validate(value: any, type: 'set', isRequired?: boolean, validator?: Validator<any[]>): [any[], string]; +function validate(value: any, type: 'object', isRequired?: boolean, validator?: Validator<any>): [any, string]; function validate<T>(value: any, type: Type, isRequired?: boolean, validator?: Validator<T>): [T, string] { if (value === undefined || value === null) { if (isRequired) { |