diff --git a/types/react-typing-animation/index.d.ts b/types/react-typing-animation/index.d.ts index 999578e3db..58977d847a 100644 --- a/types/react-typing-animation/index.d.ts +++ b/types/react-typing-animation/index.d.ts @@ -15,10 +15,10 @@ export interface TypingProps { speed?: number; startDelay?: number; loop?: boolean; - onStartedTyping?: () => {}; - onBeforeType?: () => {}; - onAfterType?: () => {}; - onFinishedType?: () => {}; + onStartedTyping?: () => void; + onBeforeType?: () => void; + onAfterType?: () => void; + onFinishedTyping?: () => void; } declare namespace Typing {