Skip to content

lib.es5.d.ts: Date#toGMTString declaration is missing #13622

Closed
@ikokostya

Description

@ikokostya

TypeScript Version: 2.2.0-dev.20170117

Code

(new Date()).toGMTString();

Expected behavior:

No errors.

Actual behavior:

Error: Property 'toGMTString' does not exist on type 'Date'.

MDN link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toGMTString

This method is deprecated, but still available in browsers and Node.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptRevisitAn issue worth coming back toSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions