We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d39c60d commit 949c6edCopy full SHA for 949c6ed
index.js
@@ -20,6 +20,8 @@ module.exports = function(source, map) {
20
// creator.create(..., source) tells the module to operate on the
21
// source variable. Check API for more details.
22
creator.create(this.resourcePath, source).then(content => {
23
+ // Emit the created content as well
24
+ this.emitFile(this.resourcePath + '.d.ts', content.contents || ['']);
25
content.writeFile().then(_ => {
26
callback(null, source, map);
27
});
0 commit comments