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
19 lines
828 B
Plaintext
19 lines
828 B
Plaintext
import { DirectusRelation } from "../../../schema/relation.js";
|
|
import { NestedPartial } from "../../../types/utils.js";
|
|
import { ApplyQueryFields } from "../../../types/output.js";
|
|
import { RestCommand } from "../../types.js";
|
|
|
|
//#region src/rest/commands/create/relations.d.ts
|
|
type CreateRelationOutput<Schema, Item extends object = DirectusRelation<Schema>> = ApplyQueryFields<Schema, Item, '*'>;
|
|
/**
|
|
* Create a new relation.
|
|
*
|
|
* @param item The relation to create
|
|
* @param query Optional return data query
|
|
*
|
|
* @returns Returns the relation object for the created relation.
|
|
*/
|
|
declare const createRelation: <Schema>(item: NestedPartial<DirectusRelation<Schema>>) => RestCommand<CreateRelationOutput<Schema>, Schema>;
|
|
//#endregion
|
|
export { CreateRelationOutput, createRelation };
|
|
//# sourceMappingURL=relations.d.ts.map |