Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-cropper

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-cropper - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

2

react-cropper/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc