dts-generator icon indicating copy to clipboard operation
dts-generator copied to clipboard

Cannot find name '...'

Open lcnvdl opened this issue 8 years ago • 0 comments

I'm getting the error "error TS2304: Cannot find name 'IAuthenticate'

Steps:

  1. 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"
  2. Then I copy the generated file "idc_shared.d.ts" to my other project, inside "typings" folder.
  3. 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 ?

lcnvdl avatar Jul 25 '16 20:07 lcnvdl