We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeScript Version: 2.7.0-dev.20171215
Code
class ServerService { public getData(){ this.privateGetData() + 2; }; private privateGetData(){ return 2; }; } abstract class Client implements ServerService { getData():void; }
Expected behavior: .d.ts
declare class ServerService { getData(): void; }
Compile success
Actual behavior: TS2420: Class 'Client' incorrectly implements interface 'ServerService'. Property 'privateGetData' is missing in type 'Client'.
.d.ts
declare class ServerService { getData(): void; private privateGetData(); }
The text was updated successfully, but these errors were encountered:
See e.g. #10516, or ask a question on Stack Overflow if you would like more explanation as to why this works the way it does
Sorry, something went wrong.
No branches or pull requests
TypeScript Version: 2.7.0-dev.20171215
Code
Expected behavior:
.d.ts
Compile success
Actual behavior:
TS2420: Class 'Client' incorrectly implements interface 'ServerService'.
Property 'privateGetData' is missing in type 'Client'.
.d.ts
The text was updated successfully, but these errors were encountered: