TypeScript/tests/cases/compiler/declarationMapsWithSourceMap.ts

19 lines
347 B
TypeScript
Raw Normal View History

// @declaration: true
// @declarationMap: true
// @outFile: bundle.js
// @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});