Skip to content

Commit c30916d

Browse files
committed
Allow URLs in Worker constructor
1 parent f0d597c commit c30916d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16722,7 +16722,7 @@ interface Worker extends EventTarget, AbstractWorker {
1672216722

1672316723
declare var Worker: {
1672416724
prototype: Worker;
16725-
new(stringUrl: string, options?: WorkerOptions): Worker;
16725+
new(stringUrl: string | URL, options?: WorkerOptions): Worker;
1672616726
};
1672716727

1672816728
interface Worklet {

baselines/webworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3879,7 +3879,7 @@ interface Worker extends EventTarget, AbstractWorker {
38793879

38803880
declare var Worker: {
38813881
prototype: Worker;
3882-
new(stringUrl: string, options?: WorkerOptions): Worker;
3882+
new(stringUrl: string | URL, options?: WorkerOptions): Worker;
38833883
};
38843884

38853885
interface WorkerGlobalScopeEventMap {

inputfiles/overridingTypes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2328,7 +2328,7 @@
23282328
"override-exposed": "Window Worker",
23292329
"constructor": {
23302330
"override-signatures": [
2331-
"new(stringUrl: string, options?: WorkerOptions): Worker"
2331+
"new(stringUrl: string | URL, options?: WorkerOptions): Worker"
23322332
]
23332333
},
23342334
"methods": {

0 commit comments

Comments
 (0)