Files
Schnappix/node_modules/expo-modules-core/src/SharedObject.ts
T

12 lines
473 B
TypeScript

'use client';
import { ensureNativeModulesAreInstalled } from './ensureNativeModulesAreInstalled';
import { EventsMap } from './ts-declarations/EventEmitter';
import type { ExpoGlobal } from './ts-declarations/global';
ensureNativeModulesAreInstalled();
export type SharedObject<TEventsMap extends EventsMap = Record<never, never>> =
typeof ExpoGlobal.SharedObject<TEventsMap>;
export const SharedObject: typeof ExpoGlobal.SharedObject = globalThis.expo.SharedObject;