D
D
Danil2020-12-20 15:30:53
npm
Danil, 2020-12-20 15:30:53

How to remove the TypeScript warning?

I wrote a small plugin for the fastify framework, but when I publish it to npm and then install it, it gives me such a warning? 5fdf3f10e6ef0546883108.png
so the thing is that I didn't use TypeScript, how to solve this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2020-12-20
@Aetae

Xs, what a fastify, but if it supports both js and ts, it can leave the care of types to someone who wants to use your plugin (although this is bad manners).
If it only uses ts, then using it you obviously need to know ts. In this case, do exactly what the console tells you: make an appropriate declaration file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question