Installation
npm install --save @types/react-cropper
Summary
This package contains type definitions for react-cropper (https://github.com/roadmanfong/react-cropper).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-cropper.
import Cropper from "cropperjs";
import * as React from "react";
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
interface ReactCropperProps
extends Cropper.Options, Omit<React.HTMLProps<HTMLImageElement>, "data" | "ref">, React.RefAttributes<ReactCropper>
{
}
interface ReactCropper extends Cropper {}
declare class ReactCropper extends React.Component<ReactCropperProps> {
on(eventname: string, callback: () => void): void;
}
export default ReactCropper;
Additional Details
Credits
These definitions were written by Walter Barbagallo, and Harald Friessnegger.