New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@shopify/react-async

Package Overview
Dependencies
Maintainers
25
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/react-async - npm Package Compare versions

Comparing version 5.0.6 to 5.1.0

6

build/ts/hooks.d.ts
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

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