Skip to content

MergePath

reference
1 min readUpdated

Kind: Type

Source: src/types.ts

Definition

ts
B extends '' ? MergePath<A, '/'> : A extends '' ? B : A extends '/' ? B : A extends `${infer P}/` ? B extends `/${infer Q}` ? `${P}/${Q}` : `${P}/${B}` : B extends `/${infer Q}` ? Q extends '' ? A : `${A}/${Q}` : `${A}/${B}`

Was this page helpful?

Download as PDF
MergePath — Hono (narrator proof)