diff --git a/src/typebox.ts b/src/typebox.ts index 9afde820d..b3047a826 100644 --- a/src/typebox.ts +++ b/src/typebox.ts @@ -857,8 +857,9 @@ export type TTemplateLiteralConst = T extends TBigInt ? `${bigint}` : T extends TBoolean ? `${boolean}` : never +export type TTemplateLiteralUnionInitial = '' // resolves github rendering bug // prettier-ignore -export type TTemplateLiteralUnion = +export type TTemplateLiteralUnion = T extends [infer L, ...infer R] ? `${TTemplateLiteralConst}${TTemplateLiteralUnion, Acc>}` : Acc export type TTemplateLiteralKeyRest = Assert>, TPropertyKey[]>