A
A
Alexander Karpov2017-04-14 15:35:45
JavaScript
Alexander Karpov, 2017-04-14 15:35:45

Which recipe to use if I want to use typescript, jquery plugins and svgjs library??

In general, it is planned to use a minimum
of fancybox
jquery
slick-carousel
svg.js

and it is also necessary that all this be used in typescript
, it is also necessary that code editors normally understand the includes and know about the presence of these libraries ...
I can’t find a normal way for the second day, to

start with node_modules and Browserify without dancing with tambourines but there is some jquery plugin stuff going on....
would love to know more about your experience..
thanks!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2017-04-14
@f-end

You need to go here: https://microsoft.github.io/TypeSearch/
Download and install typings for the listed libraries
Specify the typings folder in tsconfig.json like this:
"typeRoots": [
"../node_modules/@types",
" ../custom-types"
]
All.
And yes, the editor I use is Webstorm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question