@dcl/hooks 0.0.4 → 0.0.5-20250606193008.commit-a8b2f2a

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.
@@ -1,11 +1,11 @@
1
1
  import { DependencyList } from "react";
2
- type AsyncTaskIdenfity = (id: string, ...extra: any[]) => Promise<any>;
2
+ type AsyncTaskIdentity = (id: string, ...extra: any[]) => Promise<any>;
3
3
  /**
4
4
  * Use async tasks to execute async functions and return a list of task ids and a function to add a task
5
5
  * @param callback - The async function to execute
6
6
  * @param deps - The dependencies of the async function
7
7
  * @returns A tuple containing the list of task ids and a function to add a task
8
8
  */
9
- declare const useAsyncTasks: <C extends AsyncTaskIdenfity = AsyncTaskIdenfity>(callback: C, deps: DependencyList) => readonly [string[], C];
10
- export type { AsyncTaskIdenfity };
9
+ declare const useAsyncTasks: <C extends AsyncTaskIdentity = AsyncTaskIdentity>(callback: C, deps: DependencyList) => readonly [string[], C];
10
+ export type { AsyncTaskIdentity };
11
11
  export { useAsyncTasks };
@@ -1,11 +1,11 @@
1
1
  import { DependencyList } from "react";
2
- type AsyncTaskIdenfity = (id: string, ...extra: any[]) => Promise<any>;
2
+ type AsyncTaskIdentity = (id: string, ...extra: any[]) => Promise<any>;
3
3
  /**
4
4
  * Use async tasks to execute async functions and return a list of task ids and a function to add a task
5
5
  * @param callback - The async function to execute
6
6
  * @param deps - The dependencies of the async function
7
7
  * @returns A tuple containing the list of task ids and a function to add a task
8
8
  */
9
- declare const useAsyncTasks: <C extends AsyncTaskIdenfity = AsyncTaskIdenfity>(callback: C, deps: DependencyList) => readonly [string[], C];
10
- export type { AsyncTaskIdenfity };
9
+ declare const useAsyncTasks: <C extends AsyncTaskIdentity = AsyncTaskIdentity>(callback: C, deps: DependencyList) => readonly [string[], C];
10
+ export type { AsyncTaskIdentity };
11
11
  export { useAsyncTasks };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/hooks",
3
- "version": "0.0.4",
3
+ "version": "0.0.5-20250606193008.commit-a8b2f2a",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "exports": {
@@ -78,5 +78,5 @@
78
78
  "^src/(.*)$": "<rootDir>/src/$1"
79
79
  }
80
80
  },
81
- "commit": "eb37f8ef30fa3454323832b2b8dace3c9cd44faf"
81
+ "commit": "a8b2f2a6bf30f4374c2d70b9f1f85416b0c5c7e8"
82
82
  }