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.
Properties
Section titled “Properties”__type?
Section titled “__type?”
readonlyoptional__type:FileContent[]
Defined in: input.ts:56
Phantom type marker - actual type is FileContent[]
source
Section titled “source”
readonlysource:string
Defined in: input.ts:60
Glob pattern to match files (e.g., ‘src/*.json’)
readonlytype:"FilesInput"
Defined in: input.ts:58
Discriminator for input type
Methods
Section titled “Methods”validate()
Section titled “validate()”validate<
T>(schema):ValidatedFilesInput<T>
Defined in: input.ts:62
Attach a validation schema to this input (validates each file)
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”schema
Section titled “schema”Schema<T>