You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classFoo{baz: string;privatefoo: string;}//TS2420:Class 'Bar' incorrectly implements interface 'Foo'.// Property 'foo' is missing in type 'Bar'.classBarimplementsFoo{baz: string;}
But if add private member foo to Bar it throws
TS2420:Class 'Bar' incorrectly implements interface 'Foo'.
Types have separate declarations of a private property 'foo'.
The text was updated successfully, but these errors were encountered:
cevek
changed the title
Impossible implement another class with private keys
Impossible implement another class with private fields
Jul 28, 2017
TypeScript Version: 2.5.0 nightly
Code
But if add private member
foo
toBar
it throwsTS2420:Class 'Bar' incorrectly implements interface 'Foo'.
Types have separate declarations of a private property 'foo'.
The text was updated successfully, but these errors were encountered: