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

Function pick

packages/effect/src/Schema.ts:4967–4969  ·  view source on GitHub ↗
(literals: L2)

Source from the content-addressed store, hash-verified

4965 return Union(f(this.members))
4966 },
4967 pick<const L2 extends ReadonlyArray<L[number]>>(literals: L2): Literals<L2> {
4968 return Literals(literals)
4969 },
4970 transform<const L2 extends { readonly [I in keyof L]: SchemaAST.LiteralValue }>(
4971 to: L2
4972 ): Union<{ [I in keyof L]: decodeTo<Literal<L2[I]>, Literal<L[I]>> }> {

Callers

nothing calls this directly

Calls 1

LiteralsFunction · 0.70

Tested by

no test coverage detected