From b0fc21acbc5fd75b50770c584f709d2575b2dcdf Mon Sep 17 00:00:00 2001 From: Haseeb Majid Date: Tue, 25 Feb 2020 00:17:02 +0000 Subject: [PATCH] Updating react-typing-animation (#42564) * Added React Native Share Extension * Fixed Linting Issues Fixed linting issues, added tests. * Fixed other linting issues Data returns a promise. * Removed Public from state Removed public from state. * Added react-typing-animation Added react-typing-animation. * Updated react-typing-animation Updated the react-typing-animation definitions with the extra components such as delay, backspace. * Fix small typo in react-typing-animation Fixed small typo where onFinishedType should be onFinishedTyping. * Functions should return void Functions in `Typing` should return void not `{}`. --- types/react-typing-animation/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 {