UNPKG

@surface/custom-element

Version:

Provides support of directives and data binding on custom elements.

14 lines (13 loc) 733 B
import type { IExpression, IIdentifier, IPattern, ITemplateLiteral } from "@surface/expression"; import { SyntaxError } from "@surface/expression"; declare type ForLoopStatement = { left: IPattern | IIdentifier; operator: "of" | "in"; right: IExpression; }; export declare function getOffsetSyntaxError(statement: string, expression: string, error: SyntaxError): SyntaxError; export declare function parseExpression(expression: string): IExpression; export declare function parseInterpolation(expression: string): ITemplateLiteral; export declare function parseDestructuredPattern(expression: string): IPattern; export declare function parseForLoopStatement(expression: string): ForLoopStatement; export {};