How to fix no-unsafe-call for Set in typescript

后端 未结 0 1893
深忆病人
深忆病人 2021-01-13 06:03

I have the following code:

private static bar()
{
    const s = new Set();
    foo(s);
}
    
private static foo(
s: unknown   )   
{
    s.add("123"         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题