8000 Allow `declare global` to declare new names · Issue #8102 · microsoft/TypeScript · GitHub
[go: up one dir, main page]

Skip to content
Allow declare global to declare new names #8102
@mhegazy

Description

@mhegazy
export {};

declare global {
    interface SymbolConstructor {
        observable: symbol;
    }
}

Symbol.observable;

this is an error if ES6 library is not included, but not otherwise. most users would find this confusing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0