@AvailableInWorkers("service")
The type read-only property of the Client interface indicates the type of client the service worker is controlling.
type
external ClientType get type;