dtsmake
dtsmake copied to clipboard
.d.ts file saved,but didn't declare any js functions or vars.
// Type definitions for mySampleOut // Project: [LIBRARY_URL_HERE] // Definitions by: [YOUR_NAME_HERE] <[YOUR_URL_HERE]> // Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module 'OutModuleName' {
export = mySampleOut; //legacy ts module export
}
Above is the all content in the saved .d.ts file.
here is how I use dtsmake in command line:
C:\Users\Administrator>dtsmake -s E:\laya\protobufTest\bin\libs\bytebuffer.js -- dist E:\laya\protobufTest\bin\test\sampleOut -n mySampleOut -e -S legacy -M OutM oduleName
here is result:
v:3.10.10 dtsmake started. [CMD]node "C:\Users\Administrator\node_modules/tern/bin/condense" --name mySampl eOut E:\laya\protobufTest\bin\libs\bytebuffer.js --no-spans [SRC]E:\laya\protobufTest\bin\libs\bytebuffer.js File saved. (E:\laya\protobufTest\bin\test\sampleOut.d.ts)
.d.ts didn't have any function or var definitions. Please! How to use this tool correctly? Please! How to use this tool correctly?
I have same problem, Do you fix it?