Skip to main content

clone

@quik/services


@quik/services / ServicesStore / clone

Function: clone()

clone<Service>(service, properties?): Service

Defined in: services/src/store.ts:153

Clone a service instance while keeping a cache of clones.

Type Parameters

Service

Service extends QService

Parameters

service

string | Constructor<Service>

The service to clone.

properties?

Record<string, unknown>

Custom properties to apply to the cloned instance.

Returns

Service