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

Function literal

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

Source from the content-addressed store, hash-verified

1262 * @since 2.0.0
1263 */
1264export function literal<L extends SchemaAST.LiteralValue>(literal: L, name?: string) {
1265 return schema(Schema.Literal(literal), name)
1266}
1267
1268/**
1269 * 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