Files
klz-cables.com/.pnpm-store/v10/files/d0/fcf0dac4ad19019d4182dfd7b6ef42a791239f2d428593ea8ca13d1c4b2102ecc055a9a967fcb316fd7e858d89e8149f08bbbb4f977d787918bd626d97a5c8
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.js";
import { NestedPartial } from "../../../types/utils.js";
import { ApplyQueryFields } from "../../../types/output.js";
import { FieldQuery, Query } from "../../../types/query.js";
import { RestCommand } from "../../types.js";
//#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.ts.map