@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
22 lines • 1.29 kB
text/typescript
import { CollectionDocument, CollectionDocumentKey } from "../../../types/response.mjs";
import { CollectionDocumentMultipleQuery } from "../../../types/query-params.mjs";
import { ToolkitDocumentVersion } from "./index.mjs";
import { ToolkitTenantOptions } from "../types.mjs";
//#region src/libs/toolkit/documents/get-multiple.d.ts
type ToolkitDocumentsGetMultipleQuery<TCollectionKey extends CollectionDocumentKey = CollectionDocumentKey> = Omit<CollectionDocumentMultipleQuery<TCollectionKey>, "page" | "perPage"> & {
page?: number;
perPage?: number;
};
type ToolkitDocumentsGetMultipleInput<TCollectionKey extends CollectionDocumentKey = CollectionDocumentKey> = ToolkitTenantOptions & {
collectionKey: TCollectionKey;
version: ToolkitDocumentVersion<TCollectionKey>; /** Optional preview context that may override the requested version. */
preview?: string | null;
query?: ToolkitDocumentsGetMultipleQuery<TCollectionKey>;
};
type ToolkitDocumentsGetMultipleResult<TCollectionKey extends CollectionDocumentKey = CollectionDocumentKey> = {
data: CollectionDocument<TCollectionKey>[];
count: number;
};
//#endregion
export { ToolkitDocumentsGetMultipleInput, ToolkitDocumentsGetMultipleQuery, ToolkitDocumentsGetMultipleResult };
//# sourceMappingURL=get-multiple.d.mts.map