Skip to content

Commit

Permalink
Add TODO comment clarifying need for ts-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Jan 15, 2024
1 parent cb4a97a commit 5818ef5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ export const ${COMPONENT_NAME} = createComponent({
case MODULE_PATH:
return ts.factory.createStringLiteral(elementModulePath);
case THEME_PATH:
// TODO: remove after adding typings to WC theme folders
// https://github.com/vaadin/web-components/issues/7073
const literal = ts.factory.createStringLiteral(elementThemePath);
ts.addSyntheticLeadingComment(literal, ts.SyntaxKind.SingleLineCommentTrivia, '@ts-ignore');
return literal;
Expand Down

0 comments on commit 5818ef5

Please sign in to comment.