Skip to content

Commit 3ff5ad4

Browse files
authored
Merge pull request #283 from alexlur/master
Fix Document.currentScript
2 parents c0caf23 + 59fe81d commit 3ff5ad4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2640,7 +2640,7 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven
26402640
*/
26412641
readonly compatMode: string;
26422642
cookie: string;
2643-
readonly currentScript: HTMLScriptElement | SVGScriptElement;
2643+
readonly currentScript: HTMLScriptElement | SVGScriptElement | null;
26442644
readonly defaultView: Window;
26452645
/**
26462646
* Sets or gets a value that indicates whether the document can be edited.

inputfiles/overridingTypes.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525
"name": "adoptNode",
2626
"signatures": ["adoptNode<T extends Node>(source: T): T"]
2727
},
28+
{
29+
"kind": "property",
30+
"interface": "Document",
31+
"readonly": true,
32+
"name": "currentScript",
33+
"type": "HTMLScriptElement | SVGScriptElement | null"
34+
},
2835
{
2936
"kind": "method",
3037
"interface": "Document",

0 commit comments

Comments
 (0)