Steps to reproduce
export function fromProviders<T>() {
return {
tearDown(this: {state: T}): void {}
};
}
Behavior with typescript@6.0
no error, .d.ts emitted is:
export declare function fromProviders<T>(): {
tearDown(this: {
state: T;
}): void;
};
link
Behavior with tsgo
error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
link
Steps to reproduce
Behavior with
typescript@6.0no error, .d.ts emitted is:
link
Behavior with
tsgolink