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
classBase{foo(n: number){}}newBase().foo(123)// okclassFooextendsBase{// @ts-ignore overrides the signaturefoo(n: string){}}newFoo().foo("123")// ok
Declaration output:
declareclassBase{foo(n: number): void;}declareclassFooextendsBase{foo(n: string): void;// ERROR here because ts-ignore comment is missing.}
π Actual behavior
A consumer of a library with this declaration output reports errors.
π Expected behavior
The @ts-ignore comment should still be there, so that the types of the consumed library work the same as the library author wrote (without type errors on the Foo subclass).
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
ts-ignore stripped from declaration output
π Version & Regression Information
Tried on 4.2.3
β― Playground Link
Playground link with relevant code
π» Code
Declaration output:
π Actual behavior
A consumer of a library with this declaration output reports errors.
π Expected behavior
The
@ts-ignore
comment should still be there, so that the types of the consumed library work the same as the library author wrote (without type errors on theFoo
subclass).The text was updated successfully, but these errors were encountered: