effect-io-ai

Package: @effect/cli
Module: Options

Options.fileSchema

Creates a parameter expecting path to a file, parse its contents and validate it with a Schema.

Signature

declare const fileSchema: <I, A>(name: string, schema: Schema<A, I, FileSystem | Path | Terminal>, format?: "json" | "yaml" | "ini" | "toml" | undefined) => Options<A>

Source

Since v1.0.0