MCPcopy
hub / github.com/Effect-TS/effect / fileSchema

Function fileSchema

packages/cli/src/internal/options.ts:324–328  ·  view source on GitHub ↗
(
  name: string,
  schema: Schema.Schema<A, I, FileSystem.FileSystem | Path.Path | Terminal.Terminal>,
  format?: "json" | "yaml" | "ini" | "toml"
)

Source from the content-addressed store, hash-verified

322
323/** @internal */
324export const fileSchema = <I, A>(
325 name: string,
326 schema: Schema.Schema<A, I, FileSystem.FileSystem | Path.Path | Terminal.Terminal>,
327 format?: "json" | "yaml" | "ini" | "toml"
328): Options.Options<A> => withSchema(fileParse(name, format), schema)
329
330/** @internal */
331export const fileText = (

Callers

nothing calls this directly

Calls 1

fileParseFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…