Skip to content

Examples fail to typecheck with compilerOptions.strict=true in tsconfig #4

@jyasskin

Description

@jyasskin

Some of the fixes are easy, like adding : Component<{ item: number }> after const Sortable or :DragEventHandler after onDragStart, but some of the others are less convenient, like currentItems.indexOf(draggable.id) failing because Id includes both strings and numbers while currentItems is more precisely typed as just numbers.

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