UNPKG

@fourlights/strapi-plugin-deep-populate

Version:

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

12 lines (11 loc) 590 B
import type { Schema, UID } from "@strapi/strapi"; import type { PopulateParams } from "../populate"; export declare const getRelations: <TSchema extends UID.Schema>(model: Schema.Schema<TSchema>) => [string, Schema.Attribute.AnyAttribute][]; export declare const isEmpty: (obj: object) => boolean; export declare const hasValue: (value: unknown) => boolean; export declare const getConfig: (params: PopulateParams) => { allow: import("../../config").ContentTypeConfigAllow; deny: import("../../config").ContentTypeConfigDeny; omitEmpty: boolean; localizations: boolean; };