Skip to content

Commit

Permalink
fix: add typing for no settings
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianCataldo committed Sep 1, 2022
1 parent 0e5ce31 commit c0f3c68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? [];
Expand Down

0 comments on commit c0f3c68

Please sign in to comment.