MCPcopy Create free account
hub / github.com/Effect-TS/effect / Literal

Function Literal

packages/effect/src/Config.ts:1116–1118  ·  view source on GitHub ↗
(literal: L, name?: string)

Source from the content-addressed store, hash-verified

1114 * @since 2.0.0
1115 */
1116export function Literal<L extends SchemaAST.LiteralValue>(literal: L, name?: string) {
1117 return schema(Schema.Literal(literal), name)
1118}
1119
1120/**
1121 * Creates a config that only accepts one of the specified literal values.

Callers

nothing calls this directly

Calls 1

schemaFunction · 0.70

Tested by

no test coverage detected