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
537 B
Plaintext
19 lines
537 B
Plaintext
import type { TypeWithID } from 'payload';
|
|
import type { Documents } from './index.js';
|
|
type RequestDocuments = {
|
|
docs: {
|
|
relationTo: string;
|
|
value: number | string;
|
|
}[];
|
|
type: 'REQUEST';
|
|
};
|
|
type AddLoadedDocuments = {
|
|
docs: TypeWithID[];
|
|
idsToLoad: (number | string)[];
|
|
relationTo: string;
|
|
type: 'ADD_LOADED';
|
|
};
|
|
type Action = AddLoadedDocuments | RequestDocuments;
|
|
export declare function reducer(state: Documents, action: Action): Documents;
|
|
export {};
|
|
//# sourceMappingURL=reducer.d.ts.map |