@arcgis/components-utils 4.32.0-next.81 → 4.32.0-next.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -169,13 +169,13 @@ declare function isEsriInternalEnv(): boolean;
169
169
  *
170
170
  * Can also provide a thisContext and rest arguments
171
171
  */
172
- declare function safeCall<Callback extends (...args: any) => any>(callback?: Callback, thisContext?: ThisParameterType<Callback>, ...rest: Parameters<Callback>): ReturnType<Callback> | void;
172
+ declare function safeCall<Callback extends (...args: never[]) => unknown>(callback?: Callback, thisContext?: ThisParameterType<Callback>, ...rest: Parameters<Callback>): ReturnType<Callback> | void;
173
173
  /**
174
174
  * Calls an async method and catch any errors. Returns undefined if error occurred.
175
175
  *
176
176
  * Can also provide a thisContext and rest arguments
177
177
  */
178
- declare function safeAsyncCall<Callback extends (...args: any) => any>(callback?: Callback, thisContext?: ThisParameterType<Callback>, ...rest: Parameters<Callback>): Promise<Awaited<ReturnType<Callback>> | void>;
178
+ declare function safeAsyncCall<Callback extends (...args: never[]) => unknown>(callback?: Callback, thisContext?: ThisParameterType<Callback>, ...rest: Parameters<Callback>): Promise<Awaited<ReturnType<Callback>> | void>;
179
179
 
180
180
  /**
181
181
  * Generates a GUID string.
package/dist/index.d.ts CHANGED
@@ -169,13 +169,13 @@ declare function isEsriInternalEnv(): boolean;
169
169
  *
170
170
  * Can also provide a thisContext and rest arguments
171
171
  */
172
- declare function safeCall<Callback extends (...args: any) => any>(callback?: Callback, thisContext?: ThisParameterType<Callback>, ...rest: Parameters<Callback>): ReturnType<Callback> | void;
172
+ declare function safeCall<Callback extends (...args: never[]) => unknown>(callback?: Callback, thisContext?: ThisParameterType<Callback>, ...rest: Parameters<Callback>): ReturnType<Callback> | void;
173
173
  /**
174
174
  * Calls an async method and catch any errors. Returns undefined if error occurred.
175
175
  *
176
176
  * Can also provide a thisContext and rest arguments
177
177
  */
178
- declare function safeAsyncCall<Callback extends (...args: any) => any>(callback?: Callback, thisContext?: ThisParameterType<Callback>, ...rest: Parameters<Callback>): Promise<Awaited<ReturnType<Callback>> | void>;
178
+ declare function safeAsyncCall<Callback extends (...args: never[]) => unknown>(callback?: Callback, thisContext?: ThisParameterType<Callback>, ...rest: Parameters<Callback>): Promise<Awaited<ReturnType<Callback>> | void>;
179
179
 
180
180
  /**
181
181
  * Generates a GUID string.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/components-utils",
3
- "version": "4.32.0-next.81",
3
+ "version": "4.32.0-next.83",
4
4
  "description": "Collection of common internal patterns and utilities for ArcGIS Maps SDK for JavaScript components.",
5
5
  "homepage": "https://developers.arcgis.com/javascript/latest/",
6
6
  "sideEffects": false,