emeryao / typed-jweixin

TypeScript declaration file for Wexin JSSDK jweixin.d.ts
MIT License
15 stars 12 forks source link

types/jweixin/index.d.ts is not a module #7

Open guider opened 6 years ago

guider commented 6 years ago

image

with vue and typescript3.03

i have install with npm import wx from 'jweixin'; will give me error

how can i fix it ? thx

emeryao commented 6 years ago

you don't have to import wx in your .ts files cause it's an environment/global object instead of a module from other files just make sure the ts compiler tsc to include the declaration file when compiling