From 1e875fd22e19c6e4ba7ddb2acb634ea55e877d57 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Sun, 18 Jul 2021 22:14:13 +0200 Subject: [PATCH] Update for changes in `@types/unist` --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index aba5d74..a9c06cd 100644 --- a/index.js +++ b/index.js @@ -36,8 +36,10 @@ export var u = /** } if (Array.isArray(value)) { + // @ts-expect-error: create a parent. node.children = value } else if (value !== undefined && value !== null) { + // @ts-expect-error: create a literal. node.value = String(value) }