MCPcopy Index your code
hub / github.com/Effect-TS/effect / pick

Function pick

packages/effect/src/Schema.ts:3068–3071  ·  view source on GitHub ↗
(...keys: Keys)

Source from the content-addressed store, hash-verified

3066 * @since 3.10.0
3067 */
3068export const pick = <A, I, Keys extends ReadonlyArray<keyof A & keyof I>>(...keys: Keys) =>
3069<R>(
3070 self: Schema<A, I, R>
3071): SchemaClass<Simplify<Pick<A, Keys[number]>>, Simplify<Pick<I, Keys[number]>>, R> => make(AST.pick(self.ast, keys))
3072
3073/**
3074 * @category struct transformations

Callers 2

Schema.tsFile · 0.70
Data.tst.tsFile · 0.50

Calls 2

makeFunction · 0.70
pickMethod · 0.65

Tested by

no test coverage detected