Skip to content

Commit

Permalink
Support module modes node16 and nodenext in TypeScript (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
esdmr authored Aug 26, 2022
1 parent c7f04b7 commit ea0580f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/generate-preact.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default ${component.name};
`, component => `import { MdiReactIconComponentType } from './dist/typings';
declare const ${component.name}: MdiReactIconComponentType;
export default ${component.name};
export = ${component.name};
`, () => `import { FunctionalComponent } from 'preact';
// TODO(pcorpet): Extends SVGProps when it exists in Preact.
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default React.memo ? React.memo(${component.name}) : ${component.name};
`, component => `import { MdiReactIconComponentType } from './dist/typings';
declare const ${component.name}: MdiReactIconComponentType;
export default ${component.name};
export = ${component.name};
`, () => `import { ComponentType, SVGProps } from 'react';
type AllSVGProps = SVGProps<SVGSVGElement>
Expand Down

0 comments on commit ea0580f

Please sign in to comment.