mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
Add Node.value to yallist types
This commit is contained in:
Vendored
+1
@@ -58,6 +58,7 @@ declare namespace Yallist {
|
||||
interface Node<T> {
|
||||
prev: Node<T> | null;
|
||||
next: Node<T> | null;
|
||||
value: T;
|
||||
list?: Yallist<T>;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user