Incorrect definition for Date.UTC #54084
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Help Wanted
You can do this
Milestone
es5.d.ts
Update RequestIncorrect Definition
According to spec, the static method
Date.UTC
's second argument (monthIndex
) should be optional, but ines5.d.ts
, it isn't:TypeScript/src/lib/es5.d.ts
Line 929 in d5d9171
Sample Code
Documentation Links
MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/UTC#syntax
ECMAScript Spec: https://tc39.es/ecma262/multipage/numbers-and-dates.html#sec-date.utc
The text was updated successfully, but these errors were encountered: