Skip to main content

Interface: IFormatter

Define formatter for querystring, param, headers, body

Properties

dateTime

Optional dateTime: (value: Date) => string

Type declaration

▸ (value): string

function is JavaScript Date type convert to string

Parameters
NameType
valueDate
Returns

string

Defined in

jin-frame/src/interfaces/IFormatter.ts:19


number

Optional number: (value: number) => string | number | Date

Type declaration

▸ (value): string | number | Date

function is number type convert to another number, string, Date

Parameters
NameType
valuenumber
Returns

string | number | Date

Defined in

jin-frame/src/interfaces/IFormatter.ts:13


order

Optional order: ("string" | "number" | "dateTime")[]

order of formatter apply

Default

['number', 'string', 'dateTime']

Defined in

jin-frame/src/interfaces/IFormatter.ts:10


string

Optional string: (value: string) => string | Date

Type declaration

▸ (value): string | Date

function is string type convert to another string, Date

Parameters
NameType
valuestring
Returns

string | Date

Defined in

jin-frame/src/interfaces/IFormatter.ts:16