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

Function fileSchema

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

Source from the content-addressed store, hash-verified

829 * @since 4.0.0
830 */
831export const fileSchema = <Kind extends ParamKind, A>(
832 kind: Kind,
833 name: string,
834 schema: Schema.ConstraintDecoder<A, Environment>,
835 options?: Primitive.FileSchemaOptions | undefined
836): Param<Kind, A> =>
837 makeSingle({
838 name,
839 primitiveType: Primitive.fileSchema(schema, options),
840 kind
841 })
842
843/**
844 * Creates a param that parses key=value pairs.

Callers

nothing calls this directly

Calls 1

makeSingleFunction · 0.70

Tested by

no test coverage detected