mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
579 B
TypeScript
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;
|
|
};
|