711b4e778b
* Indirect calls for imported functions * Fix unit tests
35 lines
718 B
TypeScript
35 lines
718 B
TypeScript
//// [tests/cases/compiler/declarationEmitForGlobalishSpecifierSymlink2.ts] ////
|
|
|
|
//// [impl.d.ts]
|
|
export function getA(): A;
|
|
export enum A {
|
|
Val
|
|
}
|
|
//// [index.d.ts]
|
|
export * from "./src/impl";
|
|
//// [package.json]
|
|
{
|
|
"name": "typescript-fsa",
|
|
"version": "1.0.0"
|
|
}
|
|
//// [index.ts]
|
|
import * as _whatever from "p2";
|
|
import { getA } from "typescript-fsa";
|
|
|
|
export const a = getA();
|
|
//// [index.d.ts]
|
|
export const a: import("typescript-fsa").A;
|
|
|
|
|
|
|
|
//// [index.js]
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
exports.a = void 0;
|
|
var typescript_fsa_1 = require("typescript-fsa");
|
|
exports.a = (0, typescript_fsa_1.getA)();
|
|
|
|
|
|
//// [index.d.ts]
|
|
export declare const a: import("typescript-fsa").A;
|