Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
21 lines
979 B
Plaintext
21 lines
979 B
Plaintext
import { DirectusCollection } from "../../../schema/collection.cjs";
|
|
import { ApplyQueryFields } from "../../../types/output.cjs";
|
|
import { RestCommand } from "../../types.cjs";
|
|
|
|
//#region src/rest/commands/read/collections.d.ts
|
|
type ReadCollectionOutput<Schema, Item extends object = DirectusCollection<Schema>> = ApplyQueryFields<Schema, Item, '*'>;
|
|
/**
|
|
* List the available collections.
|
|
* @returns An array of collection objects.
|
|
*/
|
|
declare const readCollections: <Schema>() => RestCommand<ReadCollectionOutput<Schema>[], Schema>;
|
|
/**
|
|
* Retrieve a single collection by table name.
|
|
* @param collection The collection name
|
|
* @returns A collection object.
|
|
* @throws Will throw if collection is empty
|
|
*/
|
|
declare const readCollection: <Schema>(collection: DirectusCollection<Schema>["collection"]) => RestCommand<ReadCollectionOutput<Schema>, Schema>;
|
|
//#endregion
|
|
export { ReadCollectionOutput, readCollection, readCollections };
|
|
//# sourceMappingURL=collections.d.cts.map |