lib/validation
Api Code Documentation / Exports / lib/validation
Table of contents
Functions
Functions
asyncValue
▸ asyncValue(multichain
, name
, val
, isValid
, defaultValue?
): Promise
<any
>
Parameters
Name | Type |
---|---|
multichain | any |
name | any |
val | any |
isValid | any |
defaultValue? | any |
Returns
Promise
<any
>
Defined in
findBadKeysInObject
▸ findBadKeysInObject(expectedKeys
, isGood
, candidate
): string
[]
Parameters
Name | Type |
---|---|
expectedKeys | string [] |
isGood | (val : unknown ) => boolean |
candidate | any |
Returns
string
[]
Defined in
isDate
▸ isDate(date
): Date
Parameters
Name | Type |
---|---|
date | string |
Returns
Date
Defined in
isNonemptyString
▸ isNonemptyString(x
): boolean
Parameters
Name | Type |
---|---|
x | unknown |
Returns
boolean
Defined in
isNumber
▸ isNumber(x
): boolean
Parameters
Name | Type |
---|---|
x | any |
Returns
boolean
Defined in
isObject
▸ isObject(x
): boolean
Parameters
Name | Type |
---|---|
x | any |
Returns
boolean
Defined in
isUserOrUndefined
▸ isUserOrUndefined(conn
, ctx
, issuer
, input
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
conn | ConnToken |
ctx | Ctx |
issuer | ServiceUser |
input | any |
Returns
Promise
<boolean
>
Defined in
value
▸ value(name
, val
, isValid
, defaultValue?
): any
Parameters
Name | Type |
---|---|
name | any |
val | any |
isValid | any |
defaultValue? | any |
Returns
any