@types/react-cropper
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -15,3 +15,3 @@ // Type definitions for react-cropper 1.3 | ||
interface ReactCropperProps extends Cropper.Options, Omit<React.HTMLProps<HTMLImageElement>, 'data' | 'ref'> { | ||
ref?: React.LegacyRef<ReactCropper>; | ||
ref?: React.LegacyRef<ReactCropper> | undefined; | ||
} | ||
@@ -18,0 +18,0 @@ |
{ | ||
"name": "@types/react-cropper", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "TypeScript definitions for react-cropper", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-cropper", | ||
"license": "MIT", | ||
@@ -35,4 +36,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "4648323593238227b929b398645354bd55a13268f8386e3c5edd24fba419c677", | ||
"typesPublisherContentHash": "1cba97755eaeaa7baff45bc43ab965b3c4ff04031c1c1a5f20acce682cc7e95a", | ||
"typeScriptVersion": "3.7" | ||
} |
@@ -9,5 +9,31 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-cropper. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-cropper/index.d.ts) | ||
````ts | ||
// Type definitions for react-cropper 1.3 | ||
// Project: https://github.com/roadmanfong/react-cropper, http://roadmanfong.github.io/react-cropper | ||
// Definitions by: Stepan Mikhaylyuk <https://github.com/stepancar> | ||
// Walter Barbagallo <https://github.com/bwlt> | ||
// Harald Friessnegger <https://github.com/frisi> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// Minimum TypeScript Version: 3.7 | ||
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'> { | ||
ref?: React.LegacyRef<ReactCropper> | undefined; | ||
} | ||
interface ReactCropper extends Cropper {} // tslint:disable-line no-empty-interface | ||
declare class ReactCropper extends React.Component<ReactCropperProps> { | ||
on(eventname: string, callback: () => void): void; | ||
} | ||
export default ReactCropper; | ||
```` | ||
### Additional Details | ||
* Last updated: Fri, 27 Mar 2020 17:15:41 GMT | ||
* Last updated: Thu, 08 Jul 2021 20:20:33 GMT | ||
* Dependencies: [@types/cropperjs](https://npmjs.com/package/@types/cropperjs), [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -14,0 +40,0 @@ * Global values: none |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5114
0
43