Skip to content

Function: init()

Prefactor TypeScript SDK


Prefactor TypeScript SDK / @prefactor/core / init

init<TMiddleware>(options): PrefactorClient<TMiddleware>

Defined in: packages/core/src/client.ts:170

Initializes and returns the process-wide Prefactor client singleton.

Repeated calls return the same client instance until it is shut down.

TMiddleware = unknown

PrefactorOptions<TMiddleware>

Initialization options.

PrefactorClient<TMiddleware>

Global Prefactor client instance.