Home > @rushstack/node-core-library > IJsonSchemaCustomFormat
IJsonSchemaCustomFormat interface
A definition for a custom format to consider during validation.
Signature:
export interface IJsonSchemaCustomFormat<T extends string | number>
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
T extends string ? 'string' : T extends number ? 'number' : never | The base JSON type. | ||
(data: T) => boolean | A validation function for the format. |