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, diff --git a/package.json b/package.json index 3aa3312..0fef930 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@optum/react-hooks", - "version": "1.0.0", + "version": "1.0.1-next.0", "description": "A reusable set of React hooks", "repository": "https://github.com/Optum/react-hooks", "license": "Apache 2.0",