-
Notifications
You must be signed in to change notification settings - Fork 701
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
static method #41
Comments
With other classes you mean subclasses? Something like this: class A {
// The static method
static foo():string { return 'bar'; }
}
class B extends A {
// Document foo here
}
B.foo(); This is no valid TypeScript as TypeScript does not inherit static methods, the compiler will generate the following error:
|
as far as i know this is not the case, will check it later but : https://typescript.codeplex.com/workitem/2047 vcl.js
|
@vclteam is right, and I had no idea this was the case! True for methods and fields. Nasty.
Compiling/running (TS 1.4):
And this means that |
Actually TypeDoc behaves like this since v.0.2, static fields and methods are now inherited and I've also added the corresponding icons. |
* Adds guard against empty `model.readme` * Use correct name for `flags` array This patch ensures the flags are made visible, flags such as `static` and `optional` were not appearing. * Style changes
dont u think that public static method should appers on other classes?
The text was updated successfully, but these errors were encountered: