Files
klz-cables.com/.pnpm-store/v10/files/51/e1908129406e39180ea77838b782b3222d2ecf1066c1415d7a37fbe4e7986e3c2ef3c2a796898cc2b013de99a4d3f43b90957a6b9137602eff6bdfa8d97d8d
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

21 lines
1.1 KiB
Plaintext

import { DirectusField } from "../../../schema/field.cjs";
import { NestedPartial } from "../../../types/utils.cjs";
import { ApplyQueryFields } from "../../../types/output.cjs";
import { FieldQuery, Query } from "../../../types/query.cjs";
import { RestCommand } from "../../types.cjs";
//#region src/rest/commands/create/fields.d.ts
type CreateFieldOutput<Schema, TQuery extends Query<Schema, Item>, Item extends object = DirectusField<Schema>> = ApplyQueryFields<Schema, Item, TQuery['fields']>;
/**
* Create a new field in the given collection.
*
* @param collection The collection to create a field for
* @param item The field to create
* @param query Optional return data query
*
* @returns The field object for the created field.
*/
declare const createField: <Schema, const TQuery extends FieldQuery<Schema, DirectusField<Schema>>>(collection: keyof Schema, item: NestedPartial<DirectusField<Schema>>, query?: TQuery) => RestCommand<CreateFieldOutput<Schema, TQuery>, Schema>;
//#endregion
export { CreateFieldOutput, createField };
//# sourceMappingURL=fields.d.cts.map