parse() function

Parse an input string into an array of tokens

Signature:

export declare function parse(src: string, options?: ParseOptions): Array<Content | PlainArg | FunctionArg | Select>;

Parameters

Parameter Type Description
src string  
options ParseOptions (Optional)

Returns:

Array<Content | PlainArg | FunctionArg | Select>

Remarks

The parser only supports the default DOUBLE_OPTIONAL apostrophe mode.