From bd4227425b59bde4f7fdee971fac6de0f7843442 Mon Sep 17 00:00:00 2001 From: Akalanka Perera Date: Sun, 10 Mar 2024 18:38:20 +0000 Subject: [PATCH] Feat(mongoose-audit): exported audit options --- plugins/mongoose-audit/types/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mongoose-audit/types/index.d.ts b/plugins/mongoose-audit/types/index.d.ts index a3e4f6b..32495ac 100644 --- a/plugins/mongoose-audit/types/index.d.ts +++ b/plugins/mongoose-audit/types/index.d.ts @@ -10,7 +10,7 @@ interface Audit { created_at: string; } -interface PluginOptions { +export interface Options { /** The user extractor function to use. This probably will be fetching the current user from a context or something similar. */ getUser?: () => any; /** The types of audit to record. */ @@ -26,7 +26,7 @@ interface PluginOptions { } /** Registers the plugin with the provided options. */ -export declare function plugin(schema: mongoose.Schema, options: PluginOptions): void; +export declare function plugin(schema: mongoose.Schema, options: Options): void; /** * The Audit model.