Skip to content

Variable merging #4062

Open
Open
@ArtemAvramenko

Description

@ArtemAvramenko
declare var test: (s: string) => void;

declare var test: {
    (s: string) => void;
    tests: any[];
}

At the moment TS compiler shows error: Subsequent variable declarations must have the same type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions