UNPKG

@fourlights/strapi-plugin-deep-populate

Version:

This plugin provides a simple way of retrieving all nested objects in a single request.

38 lines (37 loc) 979 B
import type { UID } from "@strapi/strapi"; export type ContentTypeConfigAllow = { relations?: UID.ContentType[]; components?: UID.Component[]; }; export type ContentTypeConfigDeny = { relations?: UID.ContentType[]; components?: UID.Component[]; }; export type ContentTypeConfig = { omitEmpty?: boolean; localizations?: boolean; allow?: ContentTypeConfigAllow; deny?: ContentTypeConfigDeny; }; export type CacheOptions = { clearCacheOnStartup?: boolean; }; export type Config = { useCache: boolean; cacheOptions?: CacheOptions; replaceWildcard: boolean; omitEmpty?: boolean; localizations?: boolean; contentTypes: Partial<Record<UID.ContentType | "*", ContentTypeConfig>>; }; declare const _default: { default: ({ env }: { env: any; }) => { useCache: boolean; replaceWildcard: boolean; contentTypes: {}; }; validator: (config: Config) => void; }; export default _default;