Skip to content

btw currentScript can return null #17921

Closed
@alex-kinokon

Description

@alex-kinokon

document.currentScript is returning null | HTMLScriptElement | SVGScriptElement per https://html.spec.whatwg.org/multipage/dom.html#dom-document-currentscript

the definition has it:

interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent, ParentNode, DocumentOrShadowRoot {
    readonly currentScript: HTMLScriptElement | SVGScriptElement;
}

please fix

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do this

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions