-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Deriving namespace of types #9102
Comments
If TypeScript derives namespace of types, I can use partial classes using mixins. #563 (comment) |
This is working as intend. initially in 0.8.* extends would get you all the declarations but that seemed a lot like statics. So the recommendation is to use statics if you want your declarations to be inherited, and use namespaces for augmentation to the current symbol. |
Is your comment a deciding of design for this proposal? |
I do not think there is new information to warrant a design reconsideration. |
My description has a diff of behaviors. Or, what formats for proposals do you need? |
A use-case description that is not possible today because of this issue. |
So I'll create this proposal. |
A
extends
keyword derives only namespace of variables.TypeScript Version:
master
Code
Expected behavior:
Actual behavior:
The text was updated successfully, but these errors were encountered: