Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Support for Typescript 2.4? #6

@paul-sachs

Description

@paul-sachs

I'm trying to get this working with a project i'm working on that uses Typescript 2.4. I'm seeing this issue:

import { connect } from 'react-redux';
import { assemble, withHandlers } from 'reassemble';

...

const enhance = assemble(
  connect(null, mapDispatchToProps),
  withHandlers({
    onClick: ({counter, setCounter}) => setCounter(counter + 1)
  })
);

There's an error on withHandlers:

Argument of type 'Composable' is not assignable to parameter of type 'ComponentCallbacks'.
  Type 'ComponentCallbacks[]' has no properties in common with type 'ComponentCallbacks'.

Am I just missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions