Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/rimbu/typical/str.ts>Append

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias Append
import { type Append } from "https://deno.land/x/rimbu@1.0.2/typical/str.ts";

Convenience type to represent the concatenation of two string types.

Examples

Example 1

Append<'abc', 'def'> => 'abcdef'
Append<'abc', 'd' | 'e'> => 'abcd' | 'abce'

Type Parameters

Start extends string
End extends string
definition: `${Start}${End}`