Skip to content

Commit a1d2dfd

Browse files
authored
Fix FelaRenderer TS type extending React.ComponentType
ComponentType is a type and interfaces can't extend types, I assume this is supposed to be Component as that is what React classes extend.
1 parent 000f3c0 commit a1d2dfd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-fela/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ declare module "react-fela" {
565565
/**
566566
* Fela Renderer
567567
*/
568-
export class FelaRenderer extends React.ComponentType<React.ConsumerProps<IRenderer>> {}
568+
export class FelaRenderer extends React.Component<React.ConsumerProps<IRenderer>> {}
569569

570570
export interface FelaHookProps<Theme> {
571571
css: (style: IStyle) => string,

0 commit comments

Comments
 (0)