htmljs-parser
Version:
An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values
21 lines (20 loc) • 542 B
TypeScript
import { type StateDefinition, type Range, type Ranges, type Meta } from "../internal";
declare const enum ATTR_STAGE {
UNKNOWN = 0,
NAME = 1,
VALUE = 2,
ARGUMENT = 3,
TYPE_PARAMS = 4,
BLOCK = 5
}
export interface AttrMeta extends Meta {
stage: ATTR_STAGE;
name: undefined | Range;
valueStart: number;
args: boolean | Ranges.AttrMethod["params"];
typeParams: undefined | Ranges.Value;
spread: boolean;
bound: boolean;
}
export declare const ATTRIBUTE: StateDefinition<AttrMeta>;
export {};