We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
If they are supposed to be emitted, they are un-typed.
Seen in 1.4.1 and master.
Example:
Test.ts:
class Test { private static BAR: string = 'BAR'; private _foo: string = 'foo'; } export = Test;
tsc -d --target ES5 --module commonjs Test.ts
Test.d.ts:
declare class Test { private static BAR; private _foo; } export = Test;
The text was updated successfully, but these errors were encountered:
This was found when overloading a superclasses' setter/getter.
Throws error: Class 'SubClass' incorrectly extends base class 'SuperClass'. Types have separate declarations of a private property '_foo'.
Class 'SubClass' incorrectly extends base class 'SuperClass'. Types have separate declarations of a private property '_foo'.
Parent project:
class ObjectA { public value: any; } class SuperClass { private _foo: ObjectA; public get foo(): ObjectA { return _foo; } }
Parent defintiion:
declare class ObjectA { private value: any; } declare class SuperClass { private _foo; public foo: ObjectA; }
Child project:
class ObjectB extends ObjectA { public value2: any; } class SubClass { private _foo: ObjectB; public get foo(): ObjectB { return _foo; } }
Sorry, something went wrong.
This is by design, see #1532.
Interesting. Thanks for the link. I couldn't seem to find an issue that related.
No branches or pull requests
If they are supposed to be emitted, they are un-typed.
Seen in 1.4.1 and master.
Example:
Test.ts:
tsc -d --target ES5 --module commonjs Test.ts
Test.d.ts:
The text was updated successfully, but these errors were encountered: