Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript definitions for Preact > 8.2.8 & Redux > 4.0 & Typescript > 2.8 #34

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
},
"homepage": "https://github.com/developit/preact-redux",
"peerDependencies": {
"preact": ">=3",
"redux": ">=2"
"preact": ">=8.2.8",
"redux": ">=4"
},
"devDependencies": {
"babel-cli": "^6.24.1",
Expand Down Expand Up @@ -77,7 +77,7 @@
"mocha": "^3.2.0",
"npm-run-all": "^4.0.2",
"phantomjs-prebuilt": "^2.1.14",
"preact": "^8.1.0",
"preact": "^8.2.8",
"pretty-bytes-cli": "^2.0.0",
"react-redux": "^5.0.4",
"redux": "^4.0.0",
Expand Down
6 changes: 3 additions & 3 deletions src/preact-redux.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
// Frank Tan <https://github.com/tansongyang>
// Daniil Kolesnik <https://github.com/rand0me>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4
// TypeScript Version: 3.0

import { AnyComponent, Component, ComponentConstructor, VNode } from 'preact';
import { AnyComponent, Component, ComponentConstructor, VNode, RenderableProps } from 'preact';
import { Store, Dispatch, ActionCreator, Action } from 'redux';

// Diff / Omit taken from https://github.com/Microsoft/TypeScript/issues/12215#issuecomment-311923766
Expand Down Expand Up @@ -276,5 +276,5 @@ export interface ProviderProps {
* Makes the Redux store available to the connect() calls in the component hierarchy below.
*/
export class Provider extends Component<ProviderProps, {}> {
render(props?: ProviderProps): JSX.Element | null
render(props: RenderableProps<ProviderProps>): VNode | JSX.Element | null
}