Skip to content

hope can overwrite interface prototype type #21752

Closed
@bluelovers

Description

@bluelovers

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:

Activity

mhegazy

mhegazy commented on Feb 8, 2018

@mhegazy
Contributor

Please see #18762

locked and limited conversation to collaborators on Jul 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    UnactionableThere isn't something we can do with this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @bluelovers@RyanCavanaugh@mhegazy

        Issue actions

          hope can overwrite interface prototype type · Issue #21752 · microsoft/TypeScript