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.AppendTwo

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

Convenience type to represent the concatenation of three string types.

Examples

Example 1

AppendTwo<'abc', 'def', 'ghi'> => 'abcdefghi'
AppendTwo<'abc', 'd' | 'e', 'fgh'> => 'abcdfgh' | 'abcefgh'

Type Parameters

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