typia 3.7.0-dev.20230402 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
export function is<T>(input: unknown | T): input is T; // returns boolean
|
|
11
11
|
export function assert<T>(input: unknown | T): T; // throws TypeGuardError
|
|
12
12
|
export function validate<T>(input: unknown | T): IValidation<T>; // detailed
|
|
13
|
-
export const customValidators:
|
|
13
|
+
export const customValidators: CustomValidatorMap; // can add custom validators
|
|
14
14
|
|
|
15
15
|
// STRICT VALIDATORS
|
|
16
16
|
export function equals<T>(input: unknown | T): input is T;
|
|
@@ -202,7 +202,7 @@ export function createAssertEquals<T>(): (input: unknown) => T;
|
|
|
202
202
|
export function createValidateEquals<T>(): (input: unknown) => IValidation<T>;
|
|
203
203
|
|
|
204
204
|
// YOU CAN ADD CUSTOM VALIDATORS
|
|
205
|
-
export const customValidators:
|
|
205
|
+
export const customValidators: CustomValidatorMap;
|
|
206
206
|
```
|
|
207
207
|
|
|
208
208
|
`typia` supports three type of validator functions:
|