mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
449 B
TypeScript
16 lines
449 B
TypeScript
//// [declarationLocalAliasOfImportAlias.ts] ////
|
|
import { Record } from "./a";
|
|
export type Foo<K extends string> = Record<K, number>;
|
|
|
|
export const obj = {
|
|
doThing<K extends string>(_k: K): Foo<K> {
|
|
return {} as any;
|
|
},
|
|
};
|
|
//// [declarationLocalAliasOfImportAlias.d.ts] ////
|
|
import { Record } from "./a";
|
|
export type Foo<K extends string> = Record<K, number>;
|
|
export declare const obj: {
|
|
doThing<K extends string>(_k: K): Foo<K>;
|
|
};
|