useServiceType
Function: useServiceType()
useServiceType<
T>(type): new (name,params) =>T
Defined in: packages/bench/src/suites/fixtures.ts:260
Class of a service type as registered by the application
The application installs the configuration factory (createConfiguration: parameters class, defaults, unit
conversions) on the classes it registers. A class imported from the sources of the package under test is another
object without this factory, so addService would hand it raw parameters. Harnesses must use this class to
benchmark the service as configured in production.
Type Parameters
T
T = any
Parameters
type
string
service type, e.g. Webda/FileQueue
Returns
the registered class
new (name, params) => T
Throws
Error when the type is not registered