Function: init()
Prefactor TypeScript SDK / @prefactor/core / init
Function: init()
Section titled “Function: 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.
Type Parameters
Section titled “Type Parameters”TMiddleware
Section titled “TMiddleware”TMiddleware = unknown
Parameters
Section titled “Parameters”options
Section titled “options”PrefactorOptions<TMiddleware>
Initialization options.
Returns
Section titled “Returns”PrefactorClient<TMiddleware>
Global Prefactor client instance.