From fd5911ba422750eebaf6722a2e7c04e39ac2fb63 Mon Sep 17 00:00:00 2001 From: Shane Fitzpatrick Date: Tue, 14 Nov 2017 14:02:15 -0800 Subject: [PATCH] Replace 'Function' with '() => void' --- types/react-native/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 672723249b..9854c8e441 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -6281,12 +6281,12 @@ export interface AccessibilityInfoStatic { * - announcement: The string announced by the screen reader. * - success: A boolean indicating whether the announcement was successfully made. */ - addEventListener: (eventName: AccessibilityChangeEventName, handler: Function) => void; + addEventListener: (eventName: AccessibilityChangeEventName, handler: () => void) => void; /** * Remove an event handler. */ - removeEventListener: (eventName: AccessibilityChangeEventName, handler: Function) => void; + removeEventListener: (eventName: AccessibilityChangeEventName, handler: () => void) => void; /** * Set acessibility focus to a react component.