From 6dcc3a21e64efb37d148681081532aff4287cac9 Mon Sep 17 00:00:00 2001 From: Shane Fitzpatrick Date: Mon, 13 Nov 2017 15:48:49 -0800 Subject: [PATCH] PR feedback --- types/react-native/index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 10670c010b..672723249b 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -6268,7 +6268,7 @@ export interface AccessibilityInfoStatic { * Query whether a screen reader is currently enabled. * Returns a promise which resolves to a boolean. The result is true when a screen reader is enabled and false otherwise. */ - fetch(): Promise; + fetch: () => Promise; /** * Add an event handler. Supported events: @@ -6281,26 +6281,26 @@ 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: Function) => void; /** * Remove an event handler. */ - removeEventListener(eventName: AccessibilityChangeEventName, handler: Function): void; + removeEventListener: (eventName: AccessibilityChangeEventName, handler: Function) => void; /** * Set acessibility focus to a react component. * * @platform ios */ - setAccessibilityFocus(reactTag: number): void; + setAccessibilityFocus: (reactTag: number) => void; /** * Post a string to be announced by the screen reader. * * @platform ios */ - announceFoAccessibility(announcement: string): void; + announceForAccessibility: (announcement: string) => void; } /**