Skip to content

Commit

Permalink
Feat(mongoose-audit): exported audit options
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 authored Mar 10, 2024
1 parent d0aaf6f commit bd42274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/mongoose-audit/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand All @@ -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.
Expand Down

0 comments on commit bd42274

Please sign in to comment.