-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
All methods returning the node type value should return their actual type, like #283(cloneNode) and #12048(appendChild).
TypeScript Version: master
Expected behavior:
e.g.
insertBefore<T extends Node>(newChild: T, refChild: Node | null): T;
Actual behavior:
insertBefore(newChild: Node, refChild: Node | null): Node;
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue