Returning a single type from a union return type determined by a parameter value

后端 未结 0 521
悲&欢浪女
悲&欢浪女 2020-12-04 03:41

I have the following Typescript code:

type Encoding = \'binary\' | \'utf8\';
type EncodingType = { binary: string, utf8         


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