File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @patternfly/pfe-tools " : patch
3+ " @patternfly/elements " : patch
4+ ---
5+ fixed TypeScript typings for react wrappers
Original file line number Diff line number Diff line change @@ -66,12 +66,11 @@ async function writeReactWrapper(
6666 });
6767
6868 ` , 'utf8' ) ;
69- await writeFile ( outPath . replace ( '.js' , '.d.ts' ) , typescript `// ${ path }
70- declare module '@patternfly/elements/react/pf-button/pf-button.js' {
71- import type { ReactWebComponent } from '@lit-labs/react';
72- import type { ${ Class } } from '@patternfly/elements/${ module . path } ';
73- export const ${ reactComponentName } : ReactWebComponent<${ Class } , ${ eventsInterface } >;
74- }
69+ await writeFile ( outPath . replace ( '.js' , '.d.ts' ) , typescript `
70+ // ${ path }
71+ import type { ReactWebComponent } from '@lit-labs/react';
72+ import type { ${ Class } } from '@patternfly/elements/${ module . path } ';
73+ export const ${ reactComponentName } : ReactWebComponent<${ Class } , ${ eventsInterface } >;
7574
7675 ` , 'utf8' ) ;
7776 return { tagName, outPath } ;
You can’t perform that action at this time.
0 commit comments