Skip to content

Latest commit

 

History

History
83 lines (41 loc) · 1.07 KB

File metadata and controls

83 lines (41 loc) · 1.07 KB
hide_title true
custom_edit_url
pagination_prev
pagination_next

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.