mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-11 22:37:31 +08:00
PR feedback
This commit is contained in:
10
types/react-native/index.d.ts
vendored
10
types/react-native/index.d.ts
vendored
@@ -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<boolean>;
|
||||
fetch: () => Promise<boolean>;
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user