UNPKG

react-native-nitro-modules

Version:

Insanely fast native C++, Swift or Kotlin modules with a statically compiled binding layer to JSI.

9 lines (8 loc) 330 B
/** * 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