Skip to content

[@pmndrs/pointer-events] TypeScript build error introduced in #472 #485

@nyan-left

Description

@nyan-left

PR #472 added a pointerover event listener but didn't add 'over' to the InternalEventType union, causing tsc to fail:

src/forward.ts:159:12 - error TS2678: Type '"over"' is not comparable to type 'InternalEventType'.

159       case 'over':
               ~~~~~~
src/forward.ts:204:50 - error TS2345: Argument of type '"over"' is not assignable to parameter of type 'InternalEventType'.
204   const pointerOverListener = onEvent.bind(null, 'over')
                                                     ~~~~~~
Found 2 errors in the same file, starting at: src/forward.ts:159

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