effect-io-ai

Package: effect
Module: String

String.Concat

Concatenates two strings at the type level.

Example (Concatenating string literal types)

import type { String } from "effect"

// Type-level concatenation
type Result = String.Concat<"hello", "world"> // "helloworld"

Signature

type `${A}${B}` = `${A}${B}`

Source

Since v2.0.0