Skip to content

Commit

Permalink
fix(use-async-effect): unknown -> any (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
wad4444 authored Aug 30, 2024
1 parent a74c8c8 commit 06cdcf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/use-async-effect/use-async-effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useEffect } from "@rbxts/react";
* @param effect The async effect to run.
* @param deps The dependencies to run the effect on.
*/
export function useAsyncEffect(effect: () => Promise<unknown>, deps?: unknown[]) {
export function useAsyncEffect(effect: () => Promise<any>, deps?: unknown[]) {
useEffect(() => {
const promise = effect();

Expand Down

0 comments on commit 06cdcf6

Please sign in to comment.