@yunusemrejs/drag-drop-content-types-strapi5
Version:
A powerful Strapi plugin that enables intuitive drag-and-drop sorting of content types with real-time updates, optimized performance, and a seamless user experience.
38 lines (37 loc) • 1.04 kB
TypeScript
type TradOptions = Record<string, string>;
/**
* @typedef {object} PluginRegistration
* @property {(app: any) => void} register - Registers the plugin.
* @property {(app: any) => void} bootstrap - Bootstraps the plugin.
* @property {(app: any) => Promise<any>} registerTrads - Registers the translations for the plugin.
*/
/**
* Plugin registration.
* @type {PluginRegistration}
*/
declare const _default: {
/**
* Registers the plugin.
* @param {any} app - The Strapi app instance.
*/
register(app: any): void;
/**
* Bootstraps the plugin.
* @param {any} app - The Strapi app instance.
*/
bootstrap(app: any): void;
/**
* Registers the translations for the plugin.
* @async
* @param {any} app - The Strapi app instance.
* @returns {Promise<any>} - The imported translations.
*/
registerTrads(app: any): Promise<({
data: TradOptions;
locale: string;
} | {
data: {};
locale: string;
})[]>;
};
export default _default;