Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/typical/mod.ts>Str.Append

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

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}`