mongoose-delete-ts
Version:
Mongoose soft delete plugin
8 lines (7 loc) • 413 B
TypeScript
import { Schema } from 'mongoose';
import Deleted from './Deleted';
import { DeletedQueryHelpers } from './DeletedQuery';
import { DeletedMethods } from '../methods';
import { DeletedStaticMethods } from '../statics';
type DeletedSchema<T extends Deleted = Deleted> = Schema<T, any, DeletedMethods, DeletedQueryHelpers<any, any>, any, DeletedStaticMethods<any, any>, any, any, any>;
export default DeletedSchema;