Skip to content

Commit 9ab46f6

Browse files
Merge pull request #33 from dimaip/patch-1
BUGFIX: fix support for stateful React components with TypeScript by making props mandatory
2 parents 8897213 + 502a642 commit 9ab46f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ declare module "@friendsofreactjs/react-css-themr" {
3535
identifier: string | number | symbol,
3636
defaultTheme?: {},
3737
options?: IThemrOptions
38-
): <P, S>(component: (new(props?: P, context?: any) => React.Component<P, S>) | React.SFC<P>) =>
38+
): <P, S>(component: (new(props: P, context?: any) => React.Component<P, S>) | React.SFC<P>) =>
3939
ThemedComponentClass<P & { mapThemrProps?: TMapThemrProps<P> }, S>;
4040
}

0 commit comments

Comments
 (0)