Prescribes the way to convert a value to a string back and forth.
You should implement encode and decode to ensure that they satisfy the rule: decode(encode(x)) === x.
encode
decode
decode(encode(x)) === x
Converts a string to the value of type T that is represented by the input.
T
Should throw error when the input is not decodable as type T.
Converts a value of type T to its string representation.
Generated using TypeDoc
Prescribes the way to convert a value to a string back and forth.
You should implement
encode
anddecode
to ensure that they satisfy the rule:decode(encode(x)) === x
.