Skip to content

LLM Resources

@structium/plist - API documentation ​

Functions ​

deserialize() ​

ts
function deserialize(input: string): Promise<Value>

Deserialize a string into a Plist AST.

Parameters ​

ParameterTypeDescription
inputstringCSS 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 ​

ParameterTypeDescription
inputValuePlist node
options?SerializeOptionsOptions

Returns ​

Promise<string>

CSS string

Type Aliases ​

AST ​

ts
type AST: ReturnType<typeof parse>;

SerializeOptions ​

ts
type SerializeOptions: {
  format: keyof typeof FORMAT;
};

Type declaration ​

NameType
format?keyof typeof FORMAT