sources
sources<
T>(inputs):SourcesInput<InferSourcesOutput<T>>
Defined in: input.ts:342
Create a SourcesInput that combines multiple named inputs.
Each key in the record maps to a separate input source. At runtime, all sources are loaded and combined into a single record object.
Type Parameters
Section titled “Type Parameters”T extends Record<string, Input<unknown>>
Parameters
Section titled “Parameters”inputs
Section titled “inputs”T
Record mapping keys to input specifications
Returns
Section titled “Returns”SourcesInput<InferSourcesOutput<T>>
SourcesInput specification
Example
Section titled “Example”new Planner() .in(sources({ config: loadFile('config.json'), users: loadFile('users.csv'), defaults: load({ timeout: 30 }), })) // ...