Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hope can overwrite interface prototype type #21752

Closed
bluelovers opened this issue Feb 8, 2018 · 1 comment
Closed

hope can overwrite interface prototype type #21752

bluelovers opened this issue Feb 8, 2018 · 1 comment
Labels
Unactionable There isn't something we can do with this issue

Comments

@bluelovers
Copy link
Contributor

TypeScript Version: 2.7.0-dev.201xxxxx

Search Terms:

Code

hope can overwrite interface prototype type

old interface

export interface OptionsJSDOM
{
    virtualConsole?: VirtualConsole,
}

new sub interface

export interface NewOptionsJSDOM extends OptionsJSDOM
{
    virtualConsole?: VirtualConsole | boolean,
}

Expected behavior:

export interface NewOptionsJSDOM extends OptionsJSDOM
{
    // @ts-overwrite
    virtualConsole?: VirtualConsole | boolean,
}

Actual behavior:

Playground Link:

Related Issues:

@RyanCavanaugh RyanCavanaugh added the Unactionable There isn't something we can do with this issue label Feb 8, 2018
@mhegazy
Copy link
Contributor

mhegazy commented Feb 8, 2018

Please see #18762

@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Unactionable There isn't something we can do with this issue
Projects
None yet
Development

No branches or pull requests

3 participants