@structium/plist - API documentation β
Functions β
deserialize() β
ts
function deserialize(input: string): Promise<Value>Deserialize a string into a Plist AST.
Parameters β
| Parameter | Type | Description |
|---|---|---|
input | string | CSS source string |
Returns β
Promise<Value>
Parsed CSS AST (Plist Root node)
serialize() β
ts
function serialize(input: Value, options?: SerializeOptions): Promise<string>Serialize a Plist AST back into a CSS string.
Parameters β
| Parameter | Type | Description |
|---|---|---|
input | Value | Plist node |
options? | SerializeOptions | Options |
Returns β
Promise<string>
CSS string
Type Aliases β
AST β
ts
type AST: ReturnType<typeof parse>;SerializeOptions β
ts
type SerializeOptions: {
format: keyof typeof FORMAT;
};Type declaration β
| Name | Type |
|---|---|
format? | keyof typeof FORMAT |
