Skip to content

As of TypeScript 3.1.1, types erroneously fall back to arity-agnostic createSelector signature when used with arrays #420

@nickserv

Description

@nickserv

As far as I'm aware, this breaks any usage of Reselect's array signature with TypeScript 3.1.1+. I'm not sure what causes this yet, but I'm hoping that #366 will also fix this by using a mapped generic rest tuple. Older TypeScript versions work fine, but now that 3.1.1 is already 10 months old it seems like this may be a common issue.

Discussion: https://twitter.com/jessidhia/status/1159660672000487424
Reproduction with failing type tests: https://travis-ci.com/nickmccurdy/reselect/jobs/224127648#L1087-L1115

Metadata

Metadata

Assignees

No one assigned

    Labels

    TypeScriptIssues related to TypeScript.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions