UNPKG

@fourlights/strapi-plugin-deep-populate

Version:

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

34 lines (33 loc) 879 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 Config = { useCache: boolean; 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;