Skip to content
This repository was archived by the owner on Jul 30, 2018. It is now read-only.
This repository was archived by the owner on Jul 30, 2018. It is now read-only.

Problem since TypeScript 2.7.1 – Type 'M[keyof M]' does not satisfy the constraint 'EventObject<keyof M>' #382

@inad9300

Description

@inad9300

I have a dependency on @dojo/loader version 0.1.1 for testing (I'm using the Intern framework and this seems to be required for some use case). After upgrading to TypeScript 2.7.1 (from 2.6.2), I started to see this exceptions coming from @dojo/core:

node_modules/@dojo/core/Evented.d.ts(32,95): error TS2344: Type 'M[keyof M]' does not satisfy the constraint 'EventObject<keyof M>'.
node_modules/@dojo/core/Evented.d.ts(58,72): error TS2344: Type 'M[K]' does not satisfy the constraint 'EventObject<K>'

This happens when I run intern, but seems to be related with Dojo alone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions