@shopify/react-async
Advanced tools
Comparing version 5.0.6 to 5.1.0
import { Resolver } from '@shopify/async'; | ||
import { IfAllOptionalKeys, NoInfer } from '@shopify/useful-types'; | ||
import { AssetTiming, AsyncComponentType } from './types'; | ||
export declare type Preloadable<PreloadOptions extends object> = Pick<AsyncComponentType<any, any, PreloadOptions, any, any>, 'usePreload'>; | ||
export declare type Prefetchable<PrefetchOptions extends object> = Pick<AsyncComponentType<any, any, any, PrefetchOptions, any>, 'usePrefetch'>; | ||
export declare type KeepFreshable<KeepFreshOptions extends object> = Pick<AsyncComponentType<any, any, any, any, KeepFreshOptions>, 'useKeepFresh'>; | ||
export type Preloadable<PreloadOptions extends object> = Pick<AsyncComponentType<any, any, PreloadOptions, any, any>, 'usePreload'>; | ||
export type Prefetchable<PrefetchOptions extends object> = Pick<AsyncComponentType<any, any, any, PrefetchOptions, any>, 'usePrefetch'>; | ||
export type KeepFreshable<KeepFreshOptions extends object> = Pick<AsyncComponentType<any, any, any, any, KeepFreshOptions>, 'useKeepFresh'>; | ||
export declare function usePreload<PreloadOptions extends object>(...args: IfAllOptionalKeys<PreloadOptions, [ | ||
@@ -8,0 +8,0 @@ Preloadable<PreloadOptions>, |
@@ -34,5 +34,5 @@ import { ReactElement } from 'react'; | ||
} | ||
export declare type PreloadOptions<T> = T extends AsyncHookTarget<any, infer U, any, any> ? U : never; | ||
export declare type PrefetchOptions<T> = T extends AsyncHookTarget<any, any, infer U, any> ? U : never; | ||
export declare type KeepFreshOptions<T> = T extends AsyncHookTarget<any, any, any, infer U> ? U : never; | ||
export type PreloadOptions<T> = T extends AsyncHookTarget<any, infer U, any, any> ? U : never; | ||
export type PrefetchOptions<T> = T extends AsyncHookTarget<any, any, infer U, any> ? U : never; | ||
export type KeepFreshOptions<T> = T extends AsyncHookTarget<any, any, any, infer U> ? U : never; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@shopify/react-async", | ||
"version": "5.0.6", | ||
"version": "5.1.0", | ||
"license": "MIT", | ||
@@ -38,3 +38,3 @@ "description": "Tools for creating powerful, asynchronously-loaded React components", | ||
"@shopify/react-hydrate": "^3.0.6", | ||
"@shopify/react-idle": "^3.0.3", | ||
"@shopify/react-idle": "^3.1.0", | ||
"@shopify/react-intersection-observer": "^4.0.2", | ||
@@ -41,0 +41,0 @@ "@shopify/useful-types": "^5.1.1" |
@@ -12,3 +12,3 @@ # `@shopify/react-async` | ||
```bash | ||
$ yarn add @shopify/react-async | ||
yarn add @shopify/react-async | ||
``` | ||
@@ -15,0 +15,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
109847
Updated@shopify/react-idle@^3.1.0