Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
807 B · 26 lines
TypeScript
at mistress
123456789101112131415161718192021222324252627import { TurboModuleRegistry, type TurboModule } from 'react-native';
/** * raw bridge shape. the strict public types live in `record.ts`; this stays * `string` because the native module codegen does not support narrowed types. */export type NativeDIDRecord = { did: string; createdAt: string;};
export interface Spec extends TurboModule { setOTP(otp: string): void; setDID(did: string): void; startGatt(): void; stopGatt(): void; hasServerPermissions(): boolean; getRecord(): string; setDIDHandler(handler: (record: NativeDIDRecord) => void): void; startClient(otp: string): void; stopClient(): void; hasClientPermissions(): boolean; setClientErrorHandler(handler: (message: string) => void): void;}
export default TurboModuleRegistry.getEnforcing<Spec>('RTNbleServer');