Skip to content

Commit

Permalink
fix(types): use var for components.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Oct 23, 2019
1 parent 7031687 commit 7e166e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/types/generate-component-types.ts
Expand Up @@ -38,7 +38,7 @@ export function generateComponentTypes(cmp: d.ComponentCompilerMeta): d.TypesMod
jsx: `interface ${tagNameAsPascal} {${stencilComponentJSXAttributes}}`,
element: `
interface ${htmlElementName} extends Components.${tagNameAsPascal}, HTMLStencilElement {}
const ${htmlElementName}: {
var ${htmlElementName}: {
prototype: ${htmlElementName};
new (): ${htmlElementName};
};`,
Expand Down

0 comments on commit 7e166e1

Please sign in to comment.