-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do thisYou can do this
Milestone
Description
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
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do thisYou can do this