effect-io-ai

Package: effect
Module: Config

Config.literal

Constructs a config for a literal value.

Example

import { Config } from "effect"

const config = Config.literal("http", "https")("PROTOCOL")

Signature

declare const literal: <Literals extends ReadonlyArray<LiteralValue>>(...literals: Literals) => (name?: string) => Config<Literals[number]>

Source

Since v2.0.0