Skip to content

Intellisense on global prototype overrides #22737

@olmobrutall

Description

@olmobrutall

Hi TS Team,

Both in VS Code and Visual Studio 2017, since the latest version of Typescript (2.7.2) we're not getting IntelliSense for methods that override prototypes of standard classes (Array, string, Promise).

Here is an example of the d.ts file that we use to override this classes: https://github.com/signumsoftware/framework/blob/master/Signum.React/Scripts/Globals.d.ts

The methods are not shown anymore in the auto-completion list after '.' or Ctrl+Space:

image

But the code compiles just OK and, once blindly written, parameter information works:
image

Adding an explicit /// <reference path="..."/> doesn't seem to have any effect.

Thanks in advance and keep the good work 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions