Skip to main content

Type Alias: TDepFactory<TConfig, TDeps, TDep>

TDepFactory<TConfig, TDeps, TDep> = (config, deps) => TDep

Defined in: types.ts:287

A dep the host builds itself: the gateway hands it that dep's config and deps, exactly as it would to its own class.

The members of IAIGatewayOverrides; createGatewayDeps calls a factory where one is given and new <Class>(config, deps) otherwise.

Type Parameters​

TConfig​

TConfig

TDeps​

TDeps

TDep​

TDep

Parameters​

config​

TConfig

deps​

TDeps

Returns​

TDep