@stenneepro/mongoose-soft-delete
Version:
Mongoose soft delete plugin
10 lines (7 loc) • 409 B
text/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>
export default DeletedSchema;