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
22 lines
830 B
Plaintext
22 lines
830 B
Plaintext
import type { BuildTableStateArgs, ClientConfig, CollectionPreferences, Column, ErrorResult, PaginatedDocs, ServerFunction } from 'payload';
|
|
type BuildTableStateSuccessResult = {
|
|
clientConfig?: ClientConfig;
|
|
data: PaginatedDocs;
|
|
errors?: never;
|
|
preferences: CollectionPreferences;
|
|
renderedFilters: Map<string, React.ReactNode>;
|
|
state: Column[];
|
|
Table: React.ReactNode;
|
|
};
|
|
type BuildTableStateErrorResult = {
|
|
data?: any;
|
|
renderedFilters?: never;
|
|
state?: never;
|
|
Table?: never;
|
|
} & ({
|
|
message: string;
|
|
} | ErrorResult);
|
|
export type BuildTableStateResult = BuildTableStateErrorResult | BuildTableStateSuccessResult;
|
|
export declare const buildTableStateHandler: ServerFunction<BuildTableStateArgs, Promise<BuildTableStateResult>>;
|
|
export {};
|
|
//# sourceMappingURL=buildTableState.d.ts.map |