Search


Search something to see results

parseDeclarations

Parse a string as an array of declaration nodes

Parameters

  • declaration: string

    Example:


    const declarations = await parseDeclarations('color: red; background: blue');
    console.log(declarations);

Returns Promise<(AstComment | AstDeclaration)[]>