strapi-plugin-do-not-delete
Version:
A plugin for Strapi CMS that protects certain entries from being deleted.
9 lines (8 loc) • 431 B
TypeScript
import { type UID } from '@strapi/strapi';
import { type DoNotDeletePluginOptions, type DoNotDeleteRule } from '../types';
export type ValidationService = ReturnType<typeof validationService>;
declare const validationService: () => {
validateDeleteAction(entry: any, rules: DoNotDeleteRule[]): void;
validatePluginOptions(uid: UID.ContentType, options: DoNotDeletePluginOptions): void;
};
export default validationService;