* Adds support for declaring the bundled name of a dts module export Co-authored-by: Wesley Wigham <wwigham@gmail.com> * Adds baselines * Update the tests * Try to reduce the scope of the bundledPackageName error * Use the flag in more baselines * Get it green * More tests * Handle more feedback * More test cleanup * Set the moduleResolution for the tsconfigs Co-authored-by: Wesley Wigham <wwigham@gmail.com>
23 lines
417 B
TypeScript
23 lines
417 B
TypeScript
// @noImplicitReferences: true
|
|
// @declaration: true
|
|
// @bundledPackageName: out
|
|
// @typeRoots: /types
|
|
// @traceResolution: true
|
|
// @types: lib
|
|
// @out: output.js
|
|
|
|
// @currentDirectory: /
|
|
|
|
// @filename: /types/lib/index.d.ts
|
|
|
|
interface Lib { x }
|
|
|
|
// @filename: /mod1.ts
|
|
|
|
export function foo(): Lib { return {x: 1} }
|
|
|
|
// @filename: /mod2.ts
|
|
|
|
import {foo} from "./mod1";
|
|
export const bar = foo();
|