Skip to content

ProviderType

type ProviderType<TConfig> = {
config: TConfig;
id: string;
name: string;
setup: (config) => Promise<ProviderInstance>;
};

Defined in: core/src/provider/provider.type.ts:17

A registered kind of provider: its config schema plus a setup that builds a live ProviderInstance. Config is validated against config before setup runs.

Type Parameter Default type
TConfig extends z.ZodType z.ZodType
config: TConfig;

Defined in: core/src/provider/provider.type.ts:20


id: string;

Defined in: core/src/provider/provider.type.ts:18


name: string;

Defined in: core/src/provider/provider.type.ts:19


setup: (config) => Promise<ProviderInstance>;

Defined in: core/src/provider/provider.type.ts:21

Parameter Type
config ProviderContext<TConfig>

Promise<ProviderInstance>