Skip to content

FileInput

Defined in: input.ts:35

Input specification for loading a single file.

At runtime, produces a ReadableStream<Uint8Array> or Uint8Array that must be decoded by a transform (e.g., parseJson).

The __type field is a phantom type marker for TypeScript inference.

readonly optional __type: FileContent

Defined in: input.ts:37

Phantom type marker - actual type is FileContent


readonly source: string

Defined in: input.ts:41

Path to the file to load


readonly type: "FileInput"

Defined in: input.ts:39

Discriminator for input type

validate<T>(schema): ValidatedFileInput<T>

Defined in: input.ts:43

Attach a validation schema to this input

T

Schema<T>

ValidatedFileInput<T>