|
4 | 4 | * This source code is licensed under the MIT license found in the |
5 | 5 | * LICENSE file in the root directory of this source tree. |
6 | 6 | * |
7 | | - * @generated SignedSource<<b0c8c41e65758fde472ddf1c5b106a27>> |
| 7 | + * @generated SignedSource<<3d7835eb88d765da6d5de7f92764d0af>> |
8 | 8 | * |
9 | 9 | * This file was generated by scripts/js-api/build-types/index.js. |
10 | 10 | */ |
@@ -1113,6 +1113,13 @@ declare type add = typeof add |
1113 | 1113 | declare function addChangeListener( |
1114 | 1114 | listener: (preferences: AppearancePreferences) => void, |
1115 | 1115 | ): EventSubscription |
| 1116 | +declare type AddEventListenerOptions = Readonly< |
| 1117 | + EventListenerOptions & { |
| 1118 | + once?: boolean |
| 1119 | + passive?: boolean |
| 1120 | + signal?: AbortSignal |
| 1121 | + } |
| 1122 | +> |
1116 | 1123 | declare class Alert { |
1117 | 1124 | static alert( |
1118 | 1125 | title: null | string | undefined, |
@@ -1874,7 +1881,11 @@ declare type DevMenuStatic = { |
1874 | 1881 | declare type DevSettings = typeof DevSettings |
1875 | 1882 | declare type diffClamp = typeof diffClamp |
1876 | 1883 | declare class Dimensions { |
1877 | | - static addEventListener(type: "change", handler: Function): EventSubscription |
| 1884 | + static addEventListener( |
| 1885 | + type: "change", |
| 1886 | + handler: Function, |
| 1887 | + options?: Pick<AddEventListenerOptions, "once" | "signal">, |
| 1888 | + ): EventSubscription |
1878 | 1889 | static get(dim: string): DisplayMetrics | DisplayMetricsAndroid |
1879 | 1890 | static set(dims: Readonly<DimensionsPayload>): void |
1880 | 1891 | } |
@@ -2116,6 +2127,9 @@ declare class EventEmitter< |
2116 | 2127 | declare type EventEmitter_2<T> = ( |
2117 | 2128 | handler: ($$PARAM_0$$: T) => Promise<void> | void, |
2118 | 2129 | ) => EventSubscription |
| 2130 | +declare type EventListenerOptions = { |
| 2131 | + readonly capture?: boolean |
| 2132 | +} |
2119 | 2133 | declare type EventName = (() => string) | string |
2120 | 2134 | declare interface EventSubscription { |
2121 | 2135 | remove(): void |
@@ -5816,7 +5830,7 @@ export { |
5816 | 5830 | DeviceInfo, // 0f5a517b |
5817 | 5831 | DeviceInfoConstants, // 279e7858 |
5818 | 5832 | DimensionValue, // b163a381 |
5819 | | - Dimensions, // 980ef68c |
| 5833 | + Dimensions, // 03d31826 |
5820 | 5834 | DimensionsPayload, // 653bc26c |
5821 | 5835 | DisplayMetrics, // 1dc35cef |
5822 | 5836 | DisplayMetricsAndroid, // 872e62eb |
|
0 commit comments