Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Join

type Join<Prefix extends string | never, Suffix extends string | never, Separator extends string = "-"> = Suffix extends Empty ? Prefix extends Empty ? never : Prefix : Prefix extends Empty ? Suffix : Prefix extends Suffix ? never : Suffix extends `-${infer S}` ? `-${Prefix}${Separator}${S}` : `${Prefix}${Separator}${Suffix}`;

§Type Parameters

§
Prefix extends string | never
[src]
§
Suffix extends string | never
[src]
§
Separator extends string = "-"
[src]

§Type

§
Suffix extends Empty ? Prefix extends Empty ? never : Prefix : Prefix extends Empty ? Suffix : Prefix extends Suffix ? never : Suffix extends `-${infer S}` ? `-${Prefix}${Separator}${S}` : `${Prefix}${Separator}${Suffix}`
[src]