mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Note that this *trivially* updates project urls by adding the NPM url to the end, even when the urls are almost identical or the DT one is outdated. I'll clean up the urls in a later commit. This PR is unfinished! Please do not merge it yet.
23 lines
978 B
TypeScript
23 lines
978 B
TypeScript
// Type definitions for react-cropper 0.10
|
|
// Project: https://github.com/roadmanfong/react-cropper, http://roadmanfong.github.io/react-cropper
|
|
// Definitions by: Stepan Mikhaylyuk <https://github.com/stepancar>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import * as cropperjs from 'cropperjs';
|
|
import * as React from 'react';
|
|
|
|
import Data = cropperjs.Data;
|
|
import ContainerData = cropperjs.ContainerData;
|
|
import ImageData = cropperjs.ImageData;
|
|
import CanvasData = cropperjs.CanvasData;
|
|
import CropBoxData = cropperjs.CropBoxData;
|
|
import CroppedCanvasOptions = cropperjs.CroppedCanvasOptions;
|
|
type ReactCropperProps = cropperjs.CropperOptions & React.HTMLProps<HTMLImageElement>;
|
|
|
|
interface ReactCropper extends cropperjs {} // tslint:disable-line no-empty-interface
|
|
declare class ReactCropper extends React.Component<ReactCropperProps> {
|
|
on(eventname: string, callback: () => void): void;
|
|
}
|
|
export default ReactCropper;
|