From 1155b6aed3a74ae809d23ae6cf10b80ff99d341b Mon Sep 17 00:00:00 2001 From: ikeyan Date: Mon, 27 Oct 2025 02:10:10 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#73757=20[turndown]?= =?UTF-8?q?=20Narrow=20down=20replacement=20target=20type=20by=20@ikeyan?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/turndown/index.d.ts | 4 ++-- types/turndown/turndown-tests.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/turndown/index.d.ts b/types/turndown/index.d.ts index 5cdbcf31edcd3d..734cb68fbaef99 100644 --- a/types/turndown/index.d.ts +++ b/types/turndown/index.d.ts @@ -49,7 +49,7 @@ declare namespace TurndownService { add(key: Filter, rule: Rule): void; forEach(callback: (rule: Rule, index: number) => any): void; - forNode(node: Node): Rule; + forNode(node: HTMLElement): Rule; keep(filter: Filter): void; remove(filter: Filter): void; } @@ -62,7 +62,7 @@ declare namespace TurndownService { type ReplacementFunction = ( content: string, - node: Node, + node: HTMLElement, options: Options, ) => string; diff --git a/types/turndown/turndown-tests.ts b/types/turndown/turndown-tests.ts index 3a931cccd4147e..0c1018564a23d6 100644 --- a/types/turndown/turndown-tests.ts +++ b/types/turndown/turndown-tests.ts @@ -2,7 +2,7 @@ import TurndownService = require("turndown"); const replacementFunction: TurndownService.ReplacementFunction = ( content: string, - node: TurndownService.Node, + node: HTMLElement, options: TurndownService.Options, ) => content;