Files
tsgo/testdata/baselines/reference/compiler/isolatedDeclarationsThisParameterWithCapturedGeneric.js

24 lines
579 B
TypeScript

//// [tests/cases/compiler/isolatedDeclarationsThisParameterWithCapturedGeneric.ts] ////
//// [isolatedDeclarationsThisParameterWithCapturedGeneric.ts]
export function fromProviders<T>() {
return {
tearDown(this: {state: T}): void {}
};
}
//// [isolatedDeclarationsThisParameterWithCapturedGeneric.js]
export function fromProviders() {
return {
tearDown() { }
};
}
//// [isolatedDeclarationsThisParameterWithCapturedGeneric.d.ts]
export declare function fromProviders<T>(): {
tearDown(this: {
state: T;
}): void;
};