@ethereumjs/util / toType
toType<
T
>(input
,outputType
):null
Defined in: packages/util/src/types.ts:83
Convert an input to a specified type. Input of null/undefined returns null/undefined regardless of the output type.
T
extends TypeOutput
null
value to convert
T
type to output
null
toType<
T
>(input
,outputType
):undefined
Defined in: packages/util/src/types.ts:84
Convert an input to a specified type. Input of null/undefined returns null/undefined regardless of the output type.
T
extends TypeOutput
undefined
value to convert
T
type to output
undefined
toType<
T
>(input
,outputType
):TypeOutputReturnType
[T
]
Defined in: packages/util/src/types.ts:85
Convert an input to a specified type. Input of null/undefined returns null/undefined regardless of the output type.
T
extends TypeOutput
value to convert
T
type to output