UNPKG

@paroicms/server

Version:
15 lines (14 loc) 579 B
import type { OrderByItem, ScDocumentType, ScSorting } from "@paroicms/public-anywhere-lib"; import type { Knex } from "knex"; import type { SiteContext } from "../site-context/site-context.types.js"; export declare function applyRegularChildrenSortingOnQuery(siteContext: Pick<SiteContext, "cn" | "siteSchema">, options: { query: Knex.QueryBuilder; parentDocumentType: ScDocumentType; regularChildrenSorting?: ScSorting; leftJoinDocument?: boolean; orderByAsString?: boolean; orderBy?: OrderByItem[]; }): { ordered: boolean; orderBy?: string; };