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

Function Literals

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

Source from the content-addressed store, hash-verified

1145 * @since 4.0.0
1146 */
1147export function Literals<const L extends ReadonlyArray<SchemaAST.LiteralValue>>(literals: L, name?: string) {
1148 return schema(Schema.Literals(literals), name)
1149}
1150
1151/**
1152 * Creates a config for array values that may also be read from a separated string.

Callers

nothing calls this directly

Calls 1

schemaFunction · 0.70

Tested by

no test coverage detected