getService

wvc.getService()
getService(serviceName: ServiceName): T

Retrieves a service from the service registry by its name, throw if the service is not registered.

Parameters

serviceName: ServiceName

The name of the service to retrieve.

Returns: T

T - The service if found, otherwise undefined.