From 8a4095b718955698a17d473eb95fc4aa31244042 Mon Sep 17 00:00:00 2001 From: Anthony Rosequist Date: Mon, 5 Mar 2018 13:00:50 -0600 Subject: [PATCH] Add Node.value to yallist types --- types/yallist/index.d.ts | 1 + types/yallist/yallist-tests.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/types/yallist/index.d.ts b/types/yallist/index.d.ts index 8a89697d82..11e2462a74 100644 --- a/types/yallist/index.d.ts +++ b/types/yallist/index.d.ts @@ -58,6 +58,7 @@ declare namespace Yallist { interface Node { prev: Node | null; next: Node | null; + value: T; list?: Yallist; } } diff --git a/types/yallist/yallist-tests.ts b/types/yallist/yallist-tests.ts index 69099c0da9..ffdef9ad79 100644 --- a/types/yallist/yallist-tests.ts +++ b/types/yallist/yallist-tests.ts @@ -115,3 +115,4 @@ new Yallist.Node('foo', node, node, myList); node.list; // $ExpectType Yallist | undefined node.next; // $ExpectType Node | null node.prev; // $ExpectType Node | null +node.value; // $ExpectType string