We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would be great to include typescript declaration file for mongoose-history-plugin.
Else... Anyone already have a TypeScript Ambient Declarations Class file for mongoose-history-plugin ?
The text was updated successfully, but these errors were encountered:
for the future :))
import { Mongoose, Connection, Types } from 'mongoose' export interface MongooseHistoryPluginOptions { mongoose: Mongoose connection?: Connection modelName?: string ignore?: string[] ignorePopulatedFields?: boolean } export interface MongooseHistoryPluginDiffItem { version: string diff: Record<string, [string | Record<string, [string, string]>, string | Record<string, [string, string]>]> event: string timestamp: string user: Types.ObjectId data?: unknown } export interface MongooseHistoryPluginDocumentMethods { getDiffs: () => Promise<MongooseHistoryPluginDiffItem[]> } const mongooseHistoryPlugin: <T>(options: MongooseHistoryPluginOptions) => Schema<Document<T>> export default mongooseHistoryPlugin }
Sorry, something went wrong.
No branches or pull requests
Would be great to include typescript declaration file for mongoose-history-plugin.
Else...
Anyone already have a TypeScript Ambient Declarations Class file for mongoose-history-plugin ?
The text was updated successfully, but these errors were encountered: