Typescript type guard removes null or undefined union-types

前端 未结 0 1031
长情又很酷
长情又很酷 2021-01-12 23:02

I have an object literal and want to write a type guard for the type of that specific object.

My object looks as follows:

const typeDictator = {
    va         


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