TSGPT快查本页总览快查可以传入任意字符串,但提供几个默认值可以自动补全 type Test = { color?: 'white' | 'black' | (string & {});}; https://github.com/microsoft/TypeScript/issues/29729 https://stackoverflow.com/questions/61047551/typescript-union-of-string-and-string-literals