@structium/cson - API documentation β
Functions β
deserialize() β
ts
function deserialize(input: string): Promise<any>Deserialize a CSON string into a CSON (Coffescript) Object.
Parameters β
| Parameter | Type | Description |
|---|---|---|
input | string | source string |
Returns β
Promise<any>
CSON Object
serialize() β
ts
function serialize(input: any): Promise<string>Serialize a CSON (Coffescript) Object back into a string.
Parameters β
| Parameter | Type | Description |
|---|---|---|
input | any | Input |
Returns β
Promise<string>
CSS string
Type Aliases β
CSONData β
ts
type CSONData: any;