M
M
Maxim Zolotoy2021-02-16 13:38:34
typescript
Maxim Zolotoy, 2021-02-16 13:38:34

How to solve error with this in TypeScript function?

Recently I am studying TS and have not yet been able to find how to solve this error that is indicated on the screen. I don’t understand why he got to the bottom of this this and how to remove this error?
602ba0716a85e621982323.jpeg

It is written that it does not have a type indication, but I already did it as any - why it still shows an error is not clear.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alex4answ, 2021-02-16
@spacenear

see tsconfig:
strict
noImplicitAny
noImplicitThis

D
Dmitry Belyaev, 2021-02-16
@bingo347

https://www.typescriptlang.org/docs/handbook/funct...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question