A
A
Alexey2017-09-29 20:12:14
typescript
Alexey, 2017-09-29 20:12:14

Using a library that doesn't have typescript d.ts?

The JQuery plugin is used, which does not have a type description, etc. actually d.ts.
When compiling, an error pops up.
error TS2554: Expected 0 arguments, but got 1.
How is it possible to include code that does not have descriptions (*.d.ts) and functions correctly in a typescript file?
The code:

let options = {
                videoId: 'YpDp5Y5X3iU',
                start: 0,
                repeat: true
            };

            $('#wrapper').tubular(options);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Makarov, 2017-09-29
@azovl

The answer is obvious - write type definitions yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question