microsoft / TypeScript-Vue-Starter

A starter template for TypeScript and Vue with a detailed README describing how to use the two together.
MIT License
4.45k stars 595 forks source link

If I want to introduce the js plug-in I downloaded, how should I write the declaration file? #33

Open simpleET opened 6 years ago

simpleET commented 6 years ago

If I want to introduce the js plug-in I downloaded, how should I write the declaration file? just like this: import scrollJs from '../plug/scrollJs.js'

DanielRosenwasser commented 6 years ago

Probably a better fit for StackOverflow, but you'd create a scrollJs.d.ts file that describes the exports if you're willing to place the files there.