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

Function fileSchema

packages/effect/src/unstable/cli/Flag.ts:388–392  ·  view source on GitHub ↗
(
  name: string,
  schema: Schema.ConstraintDecoder<A, Environment>,
  options?: Primitive.FileSchemaOptions | undefined
)

Source from the content-addressed store, hash-verified

386 * @since 4.0.0
387 */
388export const fileSchema = <A>(
389 name: string,
390 schema: Schema.ConstraintDecoder<A, Environment>,
391 options?: Primitive.FileSchemaOptions | undefined
392): Flag<A> => Param.fileSchema(Param.flagKind, name, schema, options)
393
394/**
395 * Creates a flag that parses key=value pairs.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected