No overload matches this call. Type 'string' is not assignable to type 'Signals'

前端 未结 3 1122
[愿得一人]
[愿得一人] 2021-02-11 16:40

I am using typescript to build a microservice and handling signals as well. The code was working fine till a few days ago but recently it started throwing errors. Couldn\'t find

3条回答
  •  醉酒成梦
    2021-02-11 17:11

    I also had this strange issue, but I worked around it using type assertions (in my case using a string enum):

    (Object.values(someEnum) as string[]).concat(otherStringArray);
    

提交回复
热议问题