Skip to content

echoCancelation typo in lib.d.ts, lib.dom.d.ts, lib.es6.d.ts #15175

@mkrymski

Description

@mkrymski

TypeScript Version: 2.2.1 / nightly (2.2.0-dev.201xxxxx)

Code

 private mediaConstraints: MediaStreamConstraints = {
    audio: {
      echoCancellation: true
    }
}

Expected behavior:
Should be compiling correctly

Actual behavior:

I'm having following error:

error TS2322: Type '{ audio: { echoCancellation: boolean; }; }' is not assignable to type 'MediaStreamConstraints'.
Types of property 'audio' are incompatible.
Type '{ echoCancellation: boolean; }' is not assignable to type 'boolean | MediaTrackConstraints'.
Object literal may only specify known properties, and 'echoCancellation' does not exist in type 'boolean | MediaTrackConstraints'.

There is typo in MediaTrackConstraintSet.
echoCancelation?: boolean | ConstrainBooleanParameters;

should be replaced to
echoCancellation?: boolean | ConstrainBooleanParameters;

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions