-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Description
TypeScript Version: 2.0.7
Code
The type signature for construct
currently has it's second and third parameters reversed (should be construct(target: T, argArray: any, newTarget: any)
). thisArg
is also incorrectly named in the signature, because argument passed to the method is the proxy, not the value of this
.
It doesn't matter too much, since the arguments are both typed any
, but the declaration files are useful for reference purposes, so parameter names should be correct.
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