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

Function fileParse

packages/effect/src/unstable/cli/Param.ts:790–799  ·  view source on GitHub ↗
(
  kind: Kind,
  name: string,
  options?: Primitive.FileParseOptions | undefined
)

Source from the content-addressed store, hash-verified

788 * @since 4.0.0
789 */
790export const fileParse = <Kind extends ParamKind>(
791 kind: Kind,
792 name: string,
793 options?: Primitive.FileParseOptions | undefined
794): Param<Kind, unknown> =>
795 makeSingle({
796 name,
797 primitiveType: Primitive.fileParse(options),
798 kind
799 })
800
801/**
802 * Creates a parameter that reads and validates file content using a schema.

Callers

nothing calls this directly

Calls 1

makeSingleFunction · 0.70

Tested by

no test coverage detected