mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
add 4 missing functions (#9666)
added functions registerFormat, unregisterFormat, getRegisteredFormats, getDefaultOptions
This commit is contained in:
committed by
Masahiro Wakame
parent
d5b8216161
commit
2bffb329a0
5
z-schema/z-schema.d.ts
vendored
5
z-schema/z-schema.d.ts
vendored
@@ -37,6 +37,11 @@ declare namespace ZSchema {
|
||||
}
|
||||
|
||||
export class Validator {
|
||||
public static registerFormat(name: string, validator: (value: any) => boolean): void;
|
||||
public static unregisterFormat(name: string): void;
|
||||
public static getRegisteredFormats(): string[];
|
||||
public static getDefaultOptions(): Options;
|
||||
|
||||
constructor(options: Options);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user