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

4.0.4 • 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.

index.d.ts

import { ClientOptions, PickerFileMetadata, PickerOptions } 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: PickerFileMetadata) => 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 .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/filestack-react

Weekly Downloads

6,651

Version

4.0.4

License

MIT

Unpacked Size

5.09 kB

Total Files

5

Last publish

Collaborators

  • types