Interface Clients
interface Clients {
claim(): Promise<void>;
get(id: string): Promise<Client>;
matchAll<T extends ClientQueryOptions>(
options?: T,
): Promise<readonly (T["type"] extends "window" ? WindowClient : Client)[]>;
openWindow(url: string | URL): Promise<WindowClient>;
}
claim(): Promise<void>;
get(id: string): Promise<Client>;
matchAll<T extends ClientQueryOptions>(
options?: T,
): Promise<readonly (T["type"] extends "window" ? WindowClient : Client)[]>;
openWindow(url: string | URL): Promise<WindowClient>;
}
Index
Methods
Methods
claim
get
matchAll
- matchAll<T extends ClientQueryOptions>(
options?: T,
): Promise<readonly (T["type"] extends "window" ? WindowClient : Client)[]> Type Parameters
- T extends ClientQueryOptions
Parameters
Optional
options: T
Returns Promise<readonly (T["type"] extends "window" ? WindowClient : Client)[]>
openWindow
- openWindow(url: string | URL): Promise<WindowClient>
Parameters
- url: string | URL
Returns Promise<WindowClient>
Provides access to Client objects. Access it via self.clients within a service worker.
MDN Reference