Add Node.value to yallist types

This commit is contained in:
Anthony Rosequist
2018-03-05 13:00:50 -06:00
parent fbba9f55be
commit 8a4095b718
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -58,6 +58,7 @@ declare namespace Yallist {
interface Node<T> {
prev: Node<T> | null;
next: Node<T> | null;
value: T;
list?: Yallist<T>;
}
}
+1
View File
@@ -115,3 +115,4 @@ new Yallist.Node('foo', node, node, myList);
node.list; // $ExpectType Yallist<string> | undefined
node.next; // $ExpectType Node<string> | null
node.prev; // $ExpectType Node<string> | null
node.value; // $ExpectType string