From c0f3c687c9f436466fd4907fee247ba47a3b51aa Mon Sep 17 00:00:00 2001 From: Julian Cataldo Date: Thu, 1 Sep 2022 14:22:39 +0200 Subject: [PATCH] fix: add typing for no settings --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 88fa69e..e531feb 100644 --- a/index.ts +++ b/index.ts @@ -31,7 +31,7 @@ export interface Settings { /** List of words to ignore */ ignore?: string[]; } -const retextCasePolice: Plugin<[Settings], Root> = +const retextCasePolice: Plugin<[Settings] | [], Root> = (settings = {}) => (tree, file) => { const ignore = settings.ignore ?? [];