Skip to content

Selector type enforcement breaks with opts #34

Description

@erin-noe-payne

Define a selector:

// TS yells at you for incorrect return type
const MySelector: Selector<number> = selector(SOME_PATH, () => 'a')
// TS no longer recognizes the incorrect return type
const MySelector: Selector<number> = selector(SOME_PATH, () => 'a', {compare: (a, b) => a === b})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions