diff --git a/src/index.ts b/src/index.ts index a12c44d..6d26c35 100644 --- a/src/index.ts +++ b/src/index.ts @@ -96,7 +96,7 @@ class PgAnonymizer extends Command { }; }); - let table = null; + let table: string | null = null; let indices: Number[] = []; let cols: string[] = []; @@ -150,7 +150,7 @@ class PgAnonymizer extends Command { return acc[key]; } return acc; - }, extension)(v); + }, extension)(v, table); } return replacement; }