We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 223a061 commit aa1e5f0Copy full SHA for aa1e5f0
src/utils/ast-utils.ts
@@ -469,6 +469,7 @@ export function getAttributeKeyText(
469
switch (node.type) {
470
case 'SvelteAttribute':
471
case 'SvelteShorthandAttribute':
472
+ case 'SvelteGenericsDirective':
473
return node.key.name;
474
case 'SvelteStyleDirective':
475
return `style:${node.key.name.name}`;
@@ -481,7 +482,12 @@ export function getAttributeKeyText(
481
482
}`;
483
}
484
default:
- throw new Error(`Unknown node type: ${node.type}`);
485
+ throw new Error(
486
+ `Unknown node type: ${
487
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- error
488
+ (node as any).type
489
+ }`
490
+ );
491
492
493
0 commit comments