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.
Properties
Section titled “Properties”__type?
Section titled “__type?”
readonlyoptional__type:FileContent
Defined in: input.ts:37
Phantom type marker - actual type is FileContent
source
Section titled “source”
readonlysource:string
Defined in: input.ts:41
Path to the file to load
readonlytype:"FileInput"
Defined in: input.ts:39
Discriminator for input type
Methods
Section titled “Methods”validate()
Section titled “validate()”validate<
T>(schema):ValidatedFileInput<T>
Defined in: input.ts:43
Attach a validation schema to this input
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”schema
Section titled “schema”Schema<T>