Typescript generics in array with conditional types

后端 未结 0 1969
感情败类
感情败类 2021-01-12 18:42

Lets say we have code like this:

const a = \'a\';
const b = \'b\';
type Union = typeof a | typeof b | string

interface         


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