Enable React Native strict TypeScript API (#11459)

This commit is contained in:
Samuel Newman
2026-08-25 09:40:14 +03:00
committed by GitHub
parent 5f3d24efab
commit f87fdd2ea2
149 changed files with 506 additions and 623 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import {type AlertButton, type AlertStatic} from 'react-native'
import {type Alert as RNAlert, type AlertButton} from 'react-native'
class WebAlert implements Pick<AlertStatic, 'alert'> {
class WebAlert implements Pick<typeof RNAlert, 'alert'> {
public alert(title: string, message?: string, buttons?: AlertButton[]): void {
if (buttons === undefined || buttons.length === 0) {
window.alert([title, message].filter(Boolean).join('\n'))