Skip to content

'declare' modifier shouldn't be allowed on a type alias. #2994

Closed

Description

Given:

declare type Foo = string;

we report no error; however, for

declare interface Foo {
}

we report

A 'declare' modifier cannot be used with an interface declaration.

Activity

  1. yuit commented on May 5, 2015

    @yuit
    Contributor

    From issue #1940, above example is now desirable and instead we should stop reporting an error on interface instead

  2. added
    Won't FixThe severity and priority of this issue do not warrant the time or complexity needed to fix it
    on May 5, 2015
  3. locked and limited conversation to collaborators on Jun 18, 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

    BugA bug in TypeScriptWon't FixThe severity and priority of this issue do not warrant the time or complexity needed to fix it

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions