@suspensive/react-image
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -10,3 +10,3 @@ import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
*/ | ||
declare const load: (src: HTMLImageElement['src']) => Promise<HTMLImageElement>; | ||
declare const load: (src: HTMLImageElement["src"]) => Promise<HTMLImageElement>; | ||
type LoadSrc = Parameters<typeof load>[0]; | ||
@@ -21,3 +21,3 @@ type LoadState<TLoadSrc extends LoadSrc> = { | ||
}; | ||
declare const useLoad: <TLoadSrc extends string>(options: UseLoadOptions<TLoadSrc>) => LoadState<TLoadSrc>; | ||
declare const useLoad: <TLoadSrc extends LoadSrc>(options: UseLoadOptions<TLoadSrc>) => LoadState<TLoadSrc>; | ||
type LoadProps<TLoadSrc extends LoadSrc> = { | ||
@@ -27,4 +27,4 @@ src: TLoadSrc; | ||
}; | ||
declare const Load: <TLoadSrc extends string>({ src, children: Children }: LoadProps<TLoadSrc>) => react_jsx_runtime.JSX.Element; | ||
declare const Load: <TLoadSrc extends LoadSrc>({ src, children: Children }: LoadProps<TLoadSrc>) => react_jsx_runtime.JSX.Element; | ||
export { Load, load, useLoad }; |
{ | ||
"name": "@suspensive/react-image", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "Useful image interfaces for React Suspense", | ||
@@ -41,3 +41,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@suspensive/utils": "2.9.4" | ||
"@suspensive/utils": "2.10.0" | ||
}, | ||
@@ -44,0 +44,0 @@ "devDependencies": { |
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
49666
+ Added@suspensive/utils@2.10.0(transitive)
- Removed@suspensive/utils@2.9.4(transitive)
Updated@suspensive/utils@2.10.0