printer-notifications/node_modules/svelte-eslint-parser/lib/parser/html.d.ts

21 lines
477 B
TypeScript
Raw Permalink Normal View History

2023-11-13 21:10:04 +00:00
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;
};