printer-notifications/node_modules/svelte-eslint-parser/lib/parser/html.d.ts
2023-11-13 16:10:04 -05:00

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;
};