* 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>
20 lines
379 B
TypeScript
20 lines
379 B
TypeScript
// @declaration: true
|
|
// @declarationMap: true
|
|
// @outFile: bundle.js
|
|
// @bundledPackageName: bundle
|
|
// @sourceMap: true
|
|
// @filename: a.ts
|
|
class Foo {
|
|
doThing(x: {a: number}) {
|
|
return {b: x.a};
|
|
}
|
|
static make() {
|
|
return new Foo();
|
|
}
|
|
}
|
|
// @filename: index.ts
|
|
const c = new Foo();
|
|
c.doThing({a: 42});
|
|
|
|
let x = c.doThing({a: 12});
|