export interface Cast<TStrict, TPermissive> {
config: CastConfig
fromUplcData(
data: UplcData,
dataPath?: string
): TStrict
kind: "Cast"
schema: TypeSchema
toUplcData(
x: TPermissive,
dataPath?: string
): UplcData
}
Properties
config
config: CastConfig
fromUplcData
fromUplcData(
data: UplcData,
dataPath?: string
): TStrict
kind
schema
schema: TypeSchema
toUplcData
toUplcData(
x: TPermissive,
dataPath?: string
): UplcData
converts javascript object to UPLC data, according to the schema.
The optional
dataPath
parameter can provide a contextual cue for the
data-conversion process, and will be displayed as part of any error messages
thrown during the data transformation