mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
46 lines
760 B
TypeScript
46 lines
760 B
TypeScript
//// [tests/cases/compiler/duplicatePackage_relativeImportWithinPackage.ts] ////
|
|
|
|
//// [package.json]
|
|
{
|
|
"name": "foo",
|
|
"version": "1.2.3"
|
|
}
|
|
|
|
//// [index.d.ts]
|
|
export class C {
|
|
private x: number;
|
|
}
|
|
|
|
//// [index.d.ts]
|
|
import { C } from "foo";
|
|
export const o: C;
|
|
|
|
//// [use.d.ts]
|
|
import { C } from "./index";
|
|
export function use(o: C): void;
|
|
|
|
//// [index.d.ts]
|
|
export class C {
|
|
private x: number;
|
|
}
|
|
|
|
//// [package.json]
|
|
{
|
|
"name": "foo",
|
|
"version": "1.2.3"
|
|
}
|
|
|
|
//// [index.ts]
|
|
import { use } from "foo/use";
|
|
import { o } from "a";
|
|
|
|
use(o);
|
|
|
|
|
|
//// [index.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const use_1 = require("foo/use");
|
|
const a_1 = require("a");
|
|
(0, use_1.use)(a_1.o);
|