Interface Clients
interface Clients {
claim(): Promise<void>;
get(id: string): Promise<Client>;
matchAll<T>(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>(options?: T): Promise<readonly (T["type"] extends "window"
? WindowClient
: Client)[]>;
openWindow(url: string | URL): Promise<WindowClient>;
}
Index
Methods
Methods
claim
get
matchAll
- match
All <T>(options?): 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
- open
Window (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