UNPKG

@localazy/strapi-plugin

Version:

The official Strapi Plugin by Localazy.

18 lines (17 loc) 693 B
/** * It is taken from the plugin * https://github.com/Barelydead/strapi-plugin-populate-deep * based on the issue * https://github.com/strapi/strapi/issues/11836 * * Edit: for Strapi v5, it is taken from the plugin * https://github.com/NEDDL/strapi-v5-plugin-populate-deep/blob/main/server/helpers/index.js * */ declare const DEFAULT_MAX_POPULATE_DEPTH = 10; declare const DEFAULT_POPULATE_DEPTH = 5; export type FullPopulateObject = { populate: any; } | boolean | undefined; declare const getFullPopulateObject: (modelUid: string, maxDepth?: number, ignore?: string[]) => FullPopulateObject; export { getFullPopulateObject, DEFAULT_POPULATE_DEPTH, DEFAULT_MAX_POPULATE_DEPTH };