Skip to content

FilesInput

Defined in: input.ts:54

Input specification for loading multiple files via glob pattern.

At runtime, produces an array of FileContent. Requires both glob and readFile in the execution context.

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

readonly optional __type: FileContent[]

Defined in: input.ts:56

Phantom type marker - actual type is FileContent[]


readonly source: string

Defined in: input.ts:60

Glob pattern to match files (e.g., ‘src/*.json’)


readonly type: "FilesInput"

Defined in: input.ts:58

Discriminator for input type

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

Defined in: input.ts:62

Attach a validation schema to this input (validates each file)

T

Schema<T>

ValidatedFilesInput<T>