Skip to main content
Module

x/rimbu/mod.ts>Literal.Value

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

Type to determine whether a value needs to be a Literal instance or may be a Literal instance.

definition: T extends
| { readonly [[Symbol.iterator]]: any; }
| Obj
| readonly any[]
| undefined
| (() => any)
? T extends string ? T | Literal<T> : Literal<T> : T | Literal<T>