UNPKG

@prisma-extensions/soft-delete

Version:

Soft Delete can be used to hide records instead of deleting them, making them recoverable later.

19 lines (18 loc) 674 B
import type { ModelNames } from '@prisma-extensions/core'; import { softDelete, softDeleteMany, softRestore, softRestoreMany } from './mutations'; export interface ExtensionConfig { models: ModelNames<true>; } export declare const applyExtension: (config?: ExtensionConfig) => (client: any) => import(".prisma/client").PrismaClient<any, any, any, { result: {}; model: { [x: string]: { softDelete: () => typeof softDelete; softDeleteMany: () => typeof softDeleteMany; softRestore: () => typeof softRestore; softRestoreMany: () => typeof softRestoreMany; }; }; query: {}; client: {}; }>;