dtsmake icon indicating copy to clipboard operation
dtsmake copied to clipboard

.d.ts file saved,but didn't declare any js functions or vars.

Open LuciferJackson opened this issue 7 years ago • 1 comments


// 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?

LuciferJackson avatar Nov 11 '17 10:11 LuciferJackson

I have same problem, Do you fix it?

JianmingXia avatar Mar 19 '18 09:03 JianmingXia