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;