Replace 'Function' with '() => void'

This commit is contained in:
Shane Fitzpatrick
2017-11-14 14:02:15 -08:00
parent 6dcc3a21e6
commit fd5911ba42

View File

@@ -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.