Skip to content

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

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

Closed
DanielRosenwasser opened this issue May 2, 2015 · 1 comment
Closed

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

DanielRosenwasser opened this issue May 2, 2015 · 1 comment
Labels
Bug A bug in TypeScript Won't Fix The severity and priority of this issue do not warrant the time or complexity needed to fix it

Comments

@DanielRosenwasser
Copy link
Member

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.
@yuit
Copy link
Contributor

yuit commented May 5, 2015

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

@mhegazy mhegazy closed this as completed May 5, 2015
@mhegazy mhegazy added the Won't Fix The severity and priority of this issue do not warrant the time or complexity needed to fix it label May 5, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Won't Fix The severity and priority of this issue do not warrant the time or complexity needed to fix it
Projects
None yet
Development

No branches or pull requests

4 participants