Skip to content

Commit b03850b

Browse files
authored
Refine webworker interface clients get signature (#844)
1 parent 8aa99b7 commit b03850b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

baselines/webworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ declare var Client: {
893893
/** Provides access to Client objects. Access it via self.clients within a service worker. */
894894
interface Clients {
895895
claim(): Promise<void>;
896-
get(id: string): Promise<any>;
896+
get(id: string): Promise<Client | undefined>;
897897
matchAll(options?: ClientQueryOptions): Promise<ReadonlyArray<Client>>;
898898
openWindow(url: string): Promise<WindowClient | null>;
899899
}

inputfiles/overridingTypes.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2695,6 +2695,17 @@
26952695
}
26962696
}
26972697
}
2698+
},
2699+
"Clients": {
2700+
"methods": {
2701+
"method": {
2702+
"get": {
2703+
"override-signatures": [
2704+
"get(id: string): Promise<Client | undefined>"
2705+
]
2706+
}
2707+
}
2708+
}
26982709
}
26992710
}
27002711
},

0 commit comments

Comments
 (0)