From ca69a1971e6f3439db7d72bdb5792ff64fdd008b Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 28 Feb 2023 14:29:08 +0100 Subject: [PATCH] Fix types for changes in TS 4.9 Related-to: GH-337. --- cli.js | 1 - filter.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cli.js b/cli.js index 3c1b59c..492e3b9 100755 --- a/cli.js +++ b/cli.js @@ -135,7 +135,6 @@ engine( ) /** - * @type {import('unified-engine').ConfigTransform} * @param {import('./index.js').OptionsObject} [options] */ function transform(options = {}) { diff --git a/filter.js b/filter.js index 9671fb4..1403491 100644 --- a/filter.js +++ b/filter.js @@ -17,7 +17,7 @@ import remarkMessageControl from 'remark-message-control' -/** @type {import('unified').Plugin<[Options?]|[], Root>} */ +/** @type {import('unified').Plugin<[Options?], Root>} */ export function filter(options = {}) { if (options.allow && options.deny) { throw new Error(