tryGetService

wvc.tryGetService()
tryGetService(serviceName: ServiceName): (undefined | T)

Retrieves a service from the service registry by its name.

Parameters

serviceName: ServiceName

The name of the service to retrieve.

Returns: (undefined | T)

  • The service if found, otherwise undefined.