diff --git a/hooks/useServiceEffect/useServiceEffect.ts b/hooks/useServiceEffect/useServiceEffect.ts index 21a617c..58e69b4 100644 --- a/hooks/useServiceEffect/useServiceEffect.ts +++ b/hooks/useServiceEffect/useServiceEffect.ts @@ -1,8 +1,9 @@ import {useEffect} from 'react'; +import {Promisable} from '../../types'; export function useServiceEffect( isPending: boolean, - service: () => Promise, + service: () => Promisable, onServiceCallResolved?: (response: T) => void, onServiceCallRejected?: (error: unknown) => void, onInitiateServiceCall?: () => void,