Skip to content

Commit

Permalink
fix(typings): add context providers to typings - #564
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Prue committed Dec 26, 2018
1 parent 71dee92 commit b10282e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
20 changes: 18 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,19 +193,35 @@ export interface ReactReduxFirebaseContextProps {
}

/**
* React Context provider for Firebase instance. Needed to use HOCs like firebaseConnect and withFirebase
* React Context for Firebase instance.
*/
export namespace ReactReduxFirebaseContext {
const prototype: {}
}

/**
* React Context provider for Firebase instance. Needed to use HOCs like firebaseConnect and withFirebase
* React Context provider for Firebase instance (with methods wrapped in dispatch). Needed to use HOCs
* like firebaseConnect and withFirebase.
*/
export namespace ReactReduxFirebaseProvider {
const prototype: {}
}

/**
* React Context for Firebase instance.
*/
export namespace ReduxFirestoreContext {
const prototype: {}
}

/**
* React Context provider for Firestore instance (with methods wrapped in dispatch). Needed to use HOCs
* like firestoreConnect and withFirestore.
*/
export namespace ReduxFirestoreProvider {
const prototype: {}
}

/**
* React Higher Order Component that passes firebase as a prop (comes from context.store.firebase)
*/
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-redux-firebase",
"version": "3.0.0-alpha.3",
"version": "3.0.0-alpha.4",
"description": "Redux integration for Firebase. Comes with a Higher Order Components for use with React.",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down

0 comments on commit b10282e

Please sign in to comment.