Rush StackShopBlogEvents
Skip to main content

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

type

T extends string ? 'string' : T extends number ? 'number' : never

The base JSON type.

validate

(data: T) => boolean

A validation function for the format.