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

Function fileSchema

packages/cli/src/internal/options.ts:325–329  ·  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

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

Callers

nothing calls this directly

Calls 1

fileParseFunction · 0.70

Tested by

no test coverage detected