You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
477 B
TypeScript

export type AttributeToken = {
key: AttributeKeyToken;
value: AttributeValueToken | null;
};
export type AttributeKeyToken = {
name: string;
start: number;
end: number;
};
export type AttributeValueToken = {
value: string;
quote: '"' | "'" | null;
start: number;
end: number;
};
/** Parse HTML attributes */
export declare function parseAttributes(code: string, startIndex: number): {
attributes: AttributeToken[];
index: number;
};