Skip to content

Commit 975160c

Browse files
authored
fix(createObjectURL): use MDN type declaration (#1095)
* fix(createObjectURL): use MDN type declaration * fix(addedTypes.jsonc): remove URL
1 parent 76512b3 commit 975160c

File tree

5 files changed

+3
-17
lines changed

5 files changed

+3
-17
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14911,7 +14911,7 @@ interface URL {
1491114911
declare var URL: {
1491214912
prototype: URL;
1491314913
new(url: string | URL, base?: string | URL): URL;
14914-
createObjectURL(object: any): string;
14914+
createObjectURL(obj: Blob | MediaSource): string;
1491514915
revokeObjectURL(url: string): void;
1491614916
};
1491714917

baselines/serviceworker.generated.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3105,7 +3105,6 @@ interface URL {
31053105
declare var URL: {
31063106
prototype: URL;
31073107
new(url: string | URL, base?: string | URL): URL;
3108-
createObjectURL(object: any): string;
31093108
};
31103109

31113110
interface URLSearchParams {

baselines/sharedworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2981,7 +2981,7 @@ interface URL {
29812981
declare var URL: {
29822982
prototype: URL;
29832983
new(url: string | URL, base?: string | URL): URL;
2984-
createObjectURL(object: any): string;
2984+
createObjectURL(obj: Blob): string;
29852985
revokeObjectURL(url: string): void;
29862986
};
29872987

baselines/webworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3188,7 +3188,7 @@ interface URL {
31883188
declare var URL: {
31893189
prototype: URL;
31903190
new(url: string | URL, base?: string | URL): URL;
3191-
createObjectURL(object: any): string;
3191+
createObjectURL(obj: Blob): string;
31923192
revokeObjectURL(url: string): void;
31933193
};
31943194

inputfiles/addedTypes.jsonc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -402,19 +402,6 @@
402402
}
403403
}
404404
},
405-
"URL": {
406-
"name": "URL",
407-
"methods": {
408-
"method": {
409-
"createObjectURL": {
410-
"exposed": "Window Worker",
411-
"overrideSignatures": [
412-
"createObjectURL(object: any): string"
413-
]
414-
}
415-
}
416-
}
417-
},
418405
"NodeListOf": {
419406
"name": "NodeListOf",
420407
"typeParameters": [

0 commit comments

Comments
 (0)