type: LiteralUnion optimization (#39871)
parent
4e45276c4e
commit
d55d39b811
@ -1,2 +1,2 @@
|
||||
/** https://github.com/Microsoft/TypeScript/issues/29729 */
|
||||
export type LiteralUnion<T extends U, U> = T | (U & {});
|
||||
export type LiteralUnion<T extends string> = T | (string & {});
|
||||
|
Loading…
Reference in New Issue