Skip to content

Commit aefa61c

Browse files
authored
Merge pull request #600 from TimvdLippe/worker-constructor-url
Allow URLs in Worker constructor
2 parents ecbe91e + c30916d commit aefa61c

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
@@ -17098,7 +17098,7 @@ interface Worker extends EventTarget, AbstractWorker {
1709817098

1709917099
declare var Worker: {
1710017100
prototype: Worker;
17101-
new(stringUrl: string, options?: WorkerOptions): Worker;
17101+
new(stringUrl: string | URL, options?: WorkerOptions): Worker;
1710217102
};
1710317103

1710417104
interface Worklet {

baselines/webworker.generated.d.ts

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

39793979
declare var Worker: {
39803980
prototype: Worker;
3981-
new(stringUrl: string, options?: WorkerOptions): Worker;
3981+
new(stringUrl: string | URL, options?: WorkerOptions): Worker;
39823982
};
39833983

39843984
interface WorkerGlobalScopeEventMap {

inputfiles/overridingTypes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2336,7 +2336,7 @@
23362336
"override-exposed": "Window Worker",
23372337
"constructor": {
23382338
"override-signatures": [
2339-
"new(stringUrl: string, options?: WorkerOptions): Worker"
2339+
"new(stringUrl: string | URL, options?: WorkerOptions): Worker"
23402340
]
23412341
},
23422342
"methods": {

0 commit comments

Comments
 (0)