From 3e78b8c50d1fc086a83fdca33bb2817f2a3e406d Mon Sep 17 00:00:00 2001 From: Shotaro Nakamura <79000684+nakasyou@users.noreply.github.com> Date: Wed, 5 Mar 2025 18:45:19 +0900 Subject: [PATCH 1/2] fix: incorrect type in walker.d.ts --- walker.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/walker.d.ts b/walker.d.ts index c8fceed..02a81ba 100644 --- a/walker.d.ts +++ b/walker.d.ts @@ -1,7 +1,7 @@ export default async function htmlStreamWalker( streamReader: ReadableStreamDefaultReader, -): { +): Promise<{ rootNode: Node | null; firstChild: (node: Node) => Node | null; nextSibling: (node: Node) => Node | null; -} \ No newline at end of file +}> From 5e32a0f1e8874202ec9990c10e48736021e39af8 Mon Sep 17 00:00:00 2001 From: Shotaro Nakamura <79000684+nakasyou@users.noreply.github.com> Date: Wed, 5 Mar 2025 18:51:39 +0900 Subject: [PATCH 2/2] Update walker.d.ts --- walker.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/walker.d.ts b/walker.d.ts index 02a81ba..892ee30 100644 --- a/walker.d.ts +++ b/walker.d.ts @@ -2,6 +2,6 @@ export default async function htmlStreamWalker( streamReader: ReadableStreamDefaultReader, ): Promise<{ rootNode: Node | null; - firstChild: (node: Node) => Node | null; - nextSibling: (node: Node) => Node | null; + firstChild: (node: Node) => Promise; + nextSibling: (node: Node) => Promise; }>