Module

x/hono/types.ts>MergePath

Fast, Lightweight, Web-standards
Extremely Popular
Go to Latest
type alias MergePath
import { type MergePath } from "https://dotland.deno.dev/x/hono@v3.12.8/types.ts";

Type Parameters

A extends string
B extends string
definition: 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}`