react-native-nitro-modules
Version:
Insanely fast native C++, Swift or Kotlin modules with a statically compiled binding layer to JSI.
11 lines • 370 B
TypeScript
/**
* Marks the given function as _synchronous_, allowing it to be called synchronously on the same
* Thread.
*
* This allows for fast native -> JS calls and avoids any asynchronous dispatching, but requires careful
* threading considerations.
*/
export type Sync<T> = T extends Function ? T & {
__syncTag?: never;
} : never;
//# sourceMappingURL=Sync.d.ts.map