import { Core } from '@strapi/strapi'; import { PluginControllers } from '../controllers'; type PathToFunction = { [K in keyof T]: T[K] extends (...args: any[]) => any ? K & string : T[K] extends object ? `${K & string}.${PathToFunction}` : never; }[keyof T]; export type Handler = `${Prefix}.${PathToFunction}`; export type StrapiRoute = Omit & { handler: Handler; config?: Core.RouteConfig & { description?: string; tag?: { plugin: string; name: string; actionType: string; }; }; }; export {};