dts-generator
dts-generator copied to clipboard
Cannot find name '...'
I'm getting the error "error TS2304: Cannot find name 'IAuthenticate'
Steps:
- I export my project using: dts-generator --name idc_shared --project . --out idc_shared.d.ts --exclude "node_modules//*.d.ts" --exclude "typings//*.d.ts"
- Then I copy the generated file "idc_shared.d.ts" to my other project, inside "typings" folder.
- I add a reference inside tsd.d.ts: "///
"
But when I compile my project, throws the error 2304. How can I attach the idc_shared js file to idc_shared.d.ts to avoid this problem ?