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
28 lines
1002 B
Plaintext
28 lines
1002 B
Plaintext
import type { BuildFormStateArgs, ClientConfig, ClientUser, ErrorResult, FormState, ServerFunction } from 'payload';
|
|
export type LockedState = {
|
|
isLocked: boolean;
|
|
lastEditedAt: string;
|
|
user?: ClientUser | number | string;
|
|
};
|
|
type BuildFormStateSuccessResult = {
|
|
clientConfig?: ClientConfig;
|
|
errors?: never;
|
|
indexPath?: string;
|
|
livePreviewURL?: string;
|
|
lockedState?: LockedState;
|
|
previewURL?: string;
|
|
state: FormState;
|
|
};
|
|
type BuildFormStateErrorResult = {
|
|
livePreviewURL?: never;
|
|
lockedState?: never;
|
|
previewURL?: never;
|
|
state?: never;
|
|
} & ({
|
|
message: string;
|
|
} | ErrorResult);
|
|
export type BuildFormStateResult = BuildFormStateErrorResult | BuildFormStateSuccessResult;
|
|
export declare const buildFormStateHandler: ServerFunction<BuildFormStateArgs, Promise<BuildFormStateResult>>;
|
|
export declare const buildFormState: (args: BuildFormStateArgs) => Promise<BuildFormStateSuccessResult>;
|
|
export {};
|
|
//# sourceMappingURL=buildFormState.d.ts.map |