Appearance
提示字符串联合类型中的值但又不限制:
type ColorType = "red" | "green" | "blue" | (string & {}); const color1: ColorType = 'blue'; const color2: ColorType = '#fff';