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
21 lines
697 B
Plaintext
21 lines
697 B
Plaintext
import type { UploadCollectionSlug } from 'payload';
|
|
import React from 'react';
|
|
type UploadHandler = (args: {
|
|
file: File;
|
|
updateFilename: (filename: string) => void;
|
|
}) => Promise<unknown>;
|
|
export type UploadHandlersContext = {
|
|
getUploadHandler: (args: {
|
|
collectionSlug: UploadCollectionSlug;
|
|
}) => null | UploadHandler;
|
|
setUploadHandler: (args: {
|
|
collectionSlug: UploadCollectionSlug;
|
|
handler: UploadHandler;
|
|
}) => unknown;
|
|
};
|
|
export declare const UploadHandlersProvider: ({ children }: {
|
|
children: any;
|
|
}) => React.JSX.Element;
|
|
export declare const useUploadHandlers: () => UploadHandlersContext;
|
|
export {};
|
|
//# sourceMappingURL=index.d.ts.map |