UNPKG

337 BTypeScriptView Raw
1export interface UploadContext {
2 set: (key: string, value: unknown) => void;
3 get: (key: string) => unknown;
4 addListener: (listener: UploadContextListener) => () => void;
5}
6declare type UploadContextListener = (values: Record<string, unknown>) => void;
7export declare function createUploadContext(): UploadContext;
8export {};