@paroicms/server
Version:
The ParoiCMS server
16 lines (15 loc) • 640 B
TypeScript
import type { DocumentsLoadDescriptor, TpDocValues } from "@paroicms/public-server-lib";
import type { RenderingContext } from "../liquidjs-tools/liquidjs-rendering/rendering-context.js";
export declare function listDocValues(renderingContext: RenderingContext, descriptor: DocumentsLoadDescriptor, options: {
onlyPublished?: boolean;
withTotal: false;
}): Promise<{
items: TpDocValues[];
}>;
export declare function listDocValues(renderingContext: RenderingContext, descriptor: DocumentsLoadDescriptor, options: {
onlyPublished?: boolean;
withTotal: true;
}): Promise<{
items: TpDocValues[];
total: number;
}>;