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
20 lines
576 B
Plaintext
20 lines
576 B
Plaintext
import type { TypeWithID } from 'payload';
|
|
import React from 'react';
|
|
export type Documents = {
|
|
[slug: string]: {
|
|
[id: number | string]: false | null | TypeWithID;
|
|
};
|
|
};
|
|
type ListRelationshipContext = {
|
|
documents: Documents;
|
|
getRelationships: (docs: {
|
|
relationTo: string;
|
|
value: number | string;
|
|
}[]) => void;
|
|
};
|
|
export declare const RelationshipProvider: React.FC<{
|
|
readonly children?: React.ReactNode;
|
|
}>;
|
|
export declare const useListRelationships: () => ListRelationshipContext;
|
|
export {};
|
|
//# sourceMappingURL=index.d.ts.map |