mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
447 B
TypeScript
19 lines
447 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.js] ////
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.obj = void 0;
|
|
exports.obj = {
|
|
doThing(_k) {
|
|
return {};
|
|
},
|
|
};
|