aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/types.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/types.ts b/src/utils/types.ts
index 4e230fe..fd8f02b 100644
--- a/src/utils/types.ts
+++ b/src/utils/types.ts
@@ -27,6 +27,7 @@ export default function definePlugin<P extends PluginDef>(p: P & Record<string,
export interface PatchReplacement {
match: string | RegExp;
replace: string | ((match: string, ...groups: string[]) => string);
+ predicate?(): boolean;
}
export interface Patch {