From 502a6428b07bf9a26035feaae3803f5b8f17f261 Mon Sep 17 00:00:00 2001 From: Dmitri Pisarev Date: Fri, 24 Aug 2018 15:56:22 +0300 Subject: [PATCH] BUGFIX: fix support for stateful React components with TypeScript by making props mandatory --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index db49f54..ee355ae 100644 --- a/index.d.ts +++ b/index.d.ts @@ -35,6 +35,6 @@ declare module "@friendsofreactjs/react-css-themr" { identifier: string | number | symbol, defaultTheme?: {}, options?: IThemrOptions - ): (component: (new(props?: P, context?: any) => React.Component) | React.SFC

) => + ): (component: (new(props: P, context?: any) => React.Component) | React.SFC

) => ThemedComponentClass

}, S>; }