Skip to content

bug(typings): multiple exports not included #311

Closed
@0x80

Description

@0x80

I started using beta14 with TypeScript and I am running into a few problems:

  • withFirebase is not exported, or so the compiler tells me.
  • ReduxFirebaseConfig passed to reactReduxFirebase need all of the properties set. None of them are optional. I think all should be optional?
  • firebaseReducer is not exported, or so the compiler tells me. I still have to use firebaseStateReducer instead.
  • reactReduxFirebase returns an object, which is not compatible with compose.

Also if I connect my component like this

export default compose(
  firebaseConnect(),
  connect(({ firebase: { auth } }) => ({ auth }))
)(LoginPage);

The compiler will tell me JSX element type 'LoginPage' does not have any construct or call signatures. In the stable version I could use withFirebase instead of firebaseConnect and the the compiler wouldn't complain.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions