GoonCord/src/global.d.ts
pylixonly b92d2734b3 fix: support New Architecture
- Retrieve turbo modules from `global.__turboModuleProxy`
- Use `getConstants()` to retrieve constants of native modules
- Defer some calls from the native bridge/JSI that could break the app when bundle index is not initialized properly

Tested on Android 291.0 (291200), not tested on older versions (without New Architecture)
2025-07-21 20:44:48 +08:00

18 lines
584 B
TypeScript

declare global {
type React = typeof import("react");
var SkiaApi: typeof import("@shopify/react-native-skia").Skia;
// ReactNative/Hermes globals
var globalEvalWithSourceUrl: (script: string, sourceURL: string) => any;
var nativePerformanceNow: typeof performance.now;
var nativeModuleProxy: Record<string, any>;
var __turboModuleProxy: (name: string) => any;
interface Window {
[key: string]: any;
vendetta: any;
bunny: typeof import("@lib");
}
}
export { };