Skip to content
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

Allow classes to extend from values of type any #14301

Closed
mhegazy opened this issue Feb 24, 2017 · 1 comment
Closed

Allow classes to extend from values of type any #14301

mhegazy opened this issue Feb 24, 2017 · 1 comment
Assignees
Labels
Committed The team has roadmapped this issue Fixed A PR has been merged for this issue Suggestion An idea for TypeScript

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Feb 24, 2017

declare var Base: any;

class C extends Base {
}

This comes up in the context of untyped imports, as well as in js files.

Referenced in #13348 and #12971

@mhegazy mhegazy added the Suggestion An idea for TypeScript label Feb 24, 2017
@mhegazy mhegazy added this to the TypeScript 2.3 milestone Feb 24, 2017
@mhegazy mhegazy added Salsa In Discussion Not yet reached consensus labels Feb 24, 2017
@RyanCavanaugh RyanCavanaugh added Help Wanted You can do this Committed The team has roadmapped this issue and removed In Discussion Not yet reached consensus labels Mar 7, 2017
@RyanCavanaugh
Copy link
Member

Add [s: string]: any index signature to the instance and static types when this happens.

@sandersn sandersn added Fixed A PR has been merged for this issue and removed Help Wanted You can do this labels Mar 31, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Committed The team has roadmapped this issue Fixed A PR has been merged for this issue Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

3 participants