@callstack/react-theme-provider
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "@callstack/react-theme-provider", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Theme provider for react and react-naitve applications", | ||
@@ -43,2 +43,3 @@ "main": "./lib/index.js", | ||
"@callstack/eslint-config": "^3.0.2", | ||
"@types/hoist-non-react-statics": "^3.3.1", | ||
"@types/react": "^16.8.8", | ||
@@ -45,0 +46,0 @@ "eslint": "^5.15.1", |
@@ -5,2 +5,3 @@ // Type definitions for @callstack/react-theme-provider 1.0.2 | ||
import * as React from 'react'; | ||
import hoistNonReactStatics = require('hoist-non-react-statics'); | ||
@@ -12,7 +13,8 @@ type $Without<T, K> = Pick<T, Exclude<keyof T, K>>; | ||
ThemeProvider: React.ComponentType<{ theme?: Theme }>; | ||
withTheme: <Props extends { theme: Theme }>( | ||
Comp: React.ComponentType<Props> | ||
withTheme: <Props extends { theme: Theme }, C>( | ||
WrappedComponent: React.ComponentType<Props> & C | ||
) => React.ComponentType< | ||
$Without<Props, 'theme'> & { theme?: $DeepPartial<Theme> } | ||
>; | ||
> & | ||
hoistNonReactStatics.NonReactStatics<typeof WrappedComponent>; | ||
useTheme(overrides?: $DeepPartial<Theme>): Theme; | ||
@@ -19,0 +21,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31160
200
17