fix: fix Typescript withTheme return type (#582)

Fix Typescript type for `withTheme`.

```typescript
const Wrapped = withTheme(Component);
render = () => <Wrapped theme={somePartialTheme} />
```
This commit is contained in:
Kacper Wiszczuk
2018-10-07 21:56:31 +02:00
committed by Satyajit Sahoo
parent 4e9056286b
commit 0837f8c2e8
2 changed files with 5 additions and 5 deletions

View File

@@ -41,7 +41,7 @@
"bootstrap": "yarn && yarn --cwd example && yarn --cwd docs"
},
"dependencies": {
"@callstack/react-theme-provider": "^1.0.4",
"@callstack/react-theme-provider": "^1.0.5",
"color": "^2.0.1",
"create-react-context": "^0.2.2",
"hoist-non-react-statics": "^2.5.0",

View File

@@ -574,10 +574,10 @@
lodash "^4.17.5"
to-fast-properties "^2.0.0"
"@callstack/react-theme-provider@^1.0.4":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@callstack/react-theme-provider/-/react-theme-provider-1.0.4.tgz#62cb2af8fedb971d509b92c79cc8476c91909477"
integrity sha512-BSYOMF+jHmj4E6Qv5oOEh0+KAwqr2iQnsnDhfeE9lWMmjj6tz2mZeBQAKHRz5mXy4bdhDUClZioRlwGTwA72hg==
"@callstack/react-theme-provider@^1.0.5":
version "1.0.5"
resolved "https://registry.yarnpkg.com/@callstack/react-theme-provider/-/react-theme-provider-1.0.5.tgz#7b0347252284ef2365883fcf5946f5f49de64875"
integrity sha512-tmxAEW7zTtAtXtFU0tvX3S4rI/3ghLKlaIpmI3OUrabth7379oOLtQwtx4nu890dI/BOx9yQR/uEoyyud6HRwg==
dependencies:
create-react-context "^0.2.1"
deepmerge "^2.1.1"