strapi-plugin-do-not-delete
Version:
A plugin for Strapi CMS that protects certain entries from being deleted.
6 lines (5 loc) • 332 B
TypeScript
export type DoNotDeleteComparator = 'after' | 'before' | 'between' | 'has' | 'hasNot' | 'in' | 'notIn' | 'is' | 'isNot' | 'gt' | 'gte' | 'lt' | 'lte' | 'day' | 'month' | 'year' | 'matches';
export type DoNotDeleteRule = [string, DoNotDeleteComparator, any];
export type DoNotDeletePluginOptions = {
rules: DoNotDeleteRule[];
};