Skip to content

Commit 7d71d3c

Browse files
author
Orta Therox
authored
Merge pull request microsoft#971 from microsoft/make_import_meta_match
Make ImportMeta's url match the version in @types/node
2 parents 8303e5e + 3da8dac commit 7d71d3c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ interface ImageEncodeOptions {
595595
}
596596

597597
interface ImportMeta {
598-
url?: string;
598+
url: string;
599599
}
600600

601601
interface InputEventInit extends UIEventInit {

baselines/webworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ interface ImageEncodeOptions {
244244
}
245245

246246
interface ImportMeta {
247-
url?: string;
247+
url: string;
248248
}
249249

250250
interface JsonWebKey {

inputfiles/addedTypes.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2301,7 +2301,8 @@
23012301
"member": {
23022302
"url": {
23032303
"name": "url",
2304-
"type": "DOMString"
2304+
"type": "DOMString",
2305+
"required": 1
23052306
}
23062307
}
23072308
}

0 commit comments

Comments
 (0)