I have a line of code written using Typescript. The label argument has a string type this is clearly visible in the screenshot

At the same time, after compiling the code, an error appears in the browser window that says that label has the type any.
Please tell me what is the cause and how can I fix this behavior
