Skip to content

Commit

Permalink
NodeList return type
Browse files Browse the repository at this point in the history
Generic param T was not used
  • Loading branch information
turuslan authored Jul 14, 2024
1 parent d50e746 commit 849b1e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/dom/node-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,14 @@ for (

export interface NodeList<T = Node> {
new (): NodeList;
readonly [index: number]: Node;
readonly [index: number]: T;
readonly length: number;
[Symbol.iterator](): Generator<Node>;
[Symbol.iterator](): Generator<T>;

item(index: number): Node;
item(index: number): T;
forEach(
cb: (node: Node, index: number, nodeList: Node[]) => void,
thisArg?: NodeList | undefined,
cb: (node: T, index: number, nodeList: T[]) => void,
thisArg?: NodeList<T> | undefined,
): void;
[nodeListMutatorSym](): NodeListMutator;
}
Expand Down

0 comments on commit 849b1e1

Please sign in to comment.