This is something that is anoyinng me really hard. Everytime I put any "( )", this message appear: log(... data: any[]): void
Anyone knows how to disable it?? Or where is it coming from??
It's useful info - it's telling you the signature of the function, of what arguments it takes and what it returns.
...data
means that it accepts any number of arguments, and any
means that the arguments can be of any type.
(In comparison, for example, calling toFixed
on a number shows you Number.toFixed(fractionDigits?: number): string
- it takes one argument, which is a number, and returns a string)
Type information like this is incredibly useful - I'd have a harder time programming without it, and I'd suggest learning the syntax and getting used to it. It's quite nice when dealing with a function that you aren't completely familiar with.
But if you want to disable it, you can open VSCode settings, search for parameterHints
, and turn it off:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.