@types/filestack-react
TypeScript icon, indicating that this package has built-in type declarations

4.0.5 • Public • Published

Installation

npm install --save @types/filestack-react

Summary

This package contains type definitions for filestack-react (https://github.com/filestack/filestack-react).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/filestack-react.

import { ClientOptions, PickerFileMetadata, PickerOptions, PickerResponse } from "filestack-js";
import * as React from "react";

export * as client from "filestack-js";

interface PickerBaseProps {
    /**
     * Filestack api key
     */
    apikey: string;
    /**
     * https://filestack.github.io/filestack-js/interfaces/clientoptions.html
     */
    pickerOptions?: PickerOptions;
    /**
     * https://filestack.github.io/filestack-js/interfaces/pickeroptions.html
     */
    clientOptions?: ClientOptions;
    /**
     * A function to be called after successful completed action
     * @deprecated
     */
    onSuccess?: (result: PickerFileMetadata) => void;
    /**
     * Called when all files have been uploaded
     */
    onUploadDone?: (result: PickerResponse) => void;
    /**
     * A function to be called when error occurs
     */
    onError?: (error: PickerFileMetadata) => void;
}

export type PickerInlineProps = PickerBaseProps;
export type PickerOverlayProps = PickerBaseProps;
export type PickerDropPaneProps = PickerBaseProps;
export const PickerInline: React.FC<PickerInlineProps>;
export const PickerOverlay: React.FC<PickerOverlayProps>;
export const PickerDropPane: React.FC<PickerDropPaneProps>;

Additional Details

Credits

These definitions were written by .

/@types/filestack-react/

    Package Sidebar

    Install

    npm i @types/filestack-react

    Weekly Downloads

    28,427

    Version

    4.0.5

    License

    MIT

    Unpacked Size

    5.14 kB

    Total Files

    5

    Last publish

    Collaborators

    • types