D
D
Dima Zherebko2016-05-17 12:54:55
JavaScript
Dima Zherebko, 2016-05-17 12:54:55

How to use js libraries in typescript if there are no definitions?

How to load a js library into a typescript project if there are no typings for it.
used

/// <amd-dependency path="./node_modules/async" />
declare var require:(moduleId:string) => any;
....
val _ : any=require('async');

but with different libs there are some problems when compiling.
Is there a more generic way to use libraries from js .

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question