Files
klz-cables.com/.pnpm-store/v10/files/db/34a4a0f8850f1812cc6077037fe122416f84b96ebce84fdf1521219f5746dc45685b4e35c466d0213dcaffaa6e723514935f4d4b935b23d56b5b62fe25890a
Marc Mintel 5397309103
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
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

24 lines
1.3 KiB
Plaintext

import { DirectusComment } from "../../../schema/comment.js";
import { ApplyQueryFields } from "../../../types/output.js";
import { Query } from "../../../types/query.js";
import { RestCommand } from "../../types.js";
//#region src/rest/commands/read/comments.d.ts
type ReadCommentOutput<Schema, TQuery extends Query<Schema, Item>, Item extends object = DirectusComment<Schema>> = ApplyQueryFields<Schema, Item, TQuery['fields']>;
/**
* List all Comments that exist in Directus.
* @param query The query parameters
* @returns An array of up to limit Comment objects. If no items are available, data will be an empty array.
*/
declare const readComments: <Schema, const TQuery extends Query<Schema, DirectusComment<Schema>>>(query?: TQuery) => RestCommand<ReadCommentOutput<Schema, TQuery>[], Schema>;
/**
* List an existing comment by primary key.
* @param key The primary key of the dashboard
* @param query The query parameters
* @returns Returns a Comment object if a valid primary key was provided.
* @throws Will throw if key is empty
*/
declare const readComment: <Schema, const TQuery extends Query<Schema, DirectusComment<Schema>>>(key: DirectusComment<Schema>["id"], query?: TQuery) => RestCommand<ReadCommentOutput<Schema, TQuery>, Schema>;
//#endregion
export { ReadCommentOutput, readComment, readComments };
//# sourceMappingURL=comments.d.ts.map