Skip to content

TypeAlias.FormatValue

github-actions[bot] edited this page Jun 9, 2026 · 33 revisions

umt / FormatValue

Type Alias: FormatValue

FormatValue = string | number | boolean | Date | null | undefined | Record<string, unknown> | unknown[]

Defined in: types/string/formatString/formatValue.ts:15

Valid value types that can be passed to formatString.

Includes primitives, objects, arrays, and null/undefined values. Objects and arrays are typically used in indexed mode as placeholder values.

Examples

// Primitive values
formatString("{0} {1}", "hello", 42) // string, number
// Complex values
formatString("{0} {1}", { key: "value" }, [1, 2, 3]) // object, array

API

Classes

Interfaces

Type Aliases

Variables

Functions

Clone this wiki locally