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
Ambient class declarations implementing an interface require the user to repeat the type members declared in the interface.
For example with the interface
interfaceIFoo{bar: string;qux(): number;}
an ambient declaration of Foo as
declareclassFooimplementsIFoo{}
fails with Class 'Foo' incorrectly implements interface 'IFoo'. Property 'bar' is missing in type 'Foo', while the following works as expected, but duplicates all declarations:
While it should be possible to specialise when declaring an ambient class, it would be very convenient if unchanged type members would not need to be redeclared.
The text was updated successfully, but these errors were encountered:
Ambient class declarations implementing an interface require the user to repeat the type members declared in the interface.
For example with the interface
an ambient declaration of
Foo
asfails with
Class 'Foo' incorrectly implements interface 'IFoo'. Property 'bar' is missing in type 'Foo'
, while the following works as expected, but duplicates all declarations:While it should be possible to specialise when declaring an ambient class, it would be very convenient if unchanged type members would not need to be redeclared.
The text was updated successfully, but these errors were encountered: