Sanity Library Reference Docs
    Preparing search index...

    Type Alias Uploader<S>Beta

    type Uploader<S extends SchemaType = SchemaType> = {
        accepts: string;
        priority: number;
        type: string;
        upload: (
            client: SanityClient,
            file: File,
            type: S,
            options?: UploadOptions,
        ) => Observable<UploadProgressEvent>;
    }

    Type Parameters

    Index

    Properties

    accepts: string
    priority: number
    type: string
    upload: (
        client: SanityClient,
        file: File,
        type: S,
        options?: UploadOptions,
    ) => Observable<UploadProgressEvent>