Skip to content

EuiSwitchChangeCallback is typed incorrectly #1134

@stacey-gammon

Description

@stacey-gammon

Typed as export type EuiSwitchChangeCallback = (state: boolean) => void;

but the callback gets an event, not a boolean:
screen shot 2018-08-22 at 11 38 16 am

see the type error when I use the callback type, but the code is correct:

screen shot 2018-08-22 at 11 37 55 am

Metadata

Metadata

Assignees

No one assigned

    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