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

Function literals

packages/effect/src/Config.ts:1294–1296  ·  view source on GitHub ↗
(literals: L, name?: string)

Source from the content-addressed store, hash-verified

1292 * @since 4.0.0
1293 */
1294export function literals<const L extends ReadonlyArray<SchemaAST.LiteralValue>>(literals: L, name?: string) {
1295 return schema(Schema.Literals(literals), name)
1296}
1297
1298/**
1299 * Creates a config for a boolean value parsed from common string

Callers

nothing calls this directly

Calls 1

schemaFunction · 0.70

Tested by

no test coverage detected