super-image
Advanced tools
Comparing version 2.1.1 to 2.2.0
{ | ||
"name": "super-image", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "React component that render a image with object-fit and its fallback", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -1,2 +0,2 @@ | ||
// Type definitions for super-image 2.0.0 | ||
// Type definitions for super-image 2.1.1 | ||
// Project: https://github.com/openfresh/super-image | ||
@@ -7,9 +7,5 @@ | ||
declare namespace SuperImage { | ||
export interface Props { | ||
export interface Props extends React.ImgHTMLAttributes<HTMLImageElement> { | ||
src: string; | ||
sources?: React.SourceHTMLAttributes<HTMLSourceElement>[]; | ||
width?: number | string; | ||
height?: number | string; | ||
alt?: string; | ||
className?: string; | ||
fit?: 'contain' | 'cover'; | ||
@@ -16,0 +12,0 @@ fitFallback?: boolean; |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15399
9
215
1