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
Name | Type |
---|---|
value | Date |
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
Name | Type |
---|---|
value | number |
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
Name | Type |
---|---|
value | string |
Returns
string
| Date