Skip to content

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.

T extends Record<string, Input<unknown>>

T

Record mapping keys to input specifications

SourcesInput<InferSourcesOutput<T>>

SourcesInput specification

new Planner()
.in(sources({
config: loadFile('config.json'),
users: loadFile('users.csv'),
defaults: load({ timeout: 30 }),
}))
// ...