mortice
Version:
Isomorphic read/write lock that works in single processes, node clusters and web workers
10 lines (8 loc) • 382 B
text/typescript
import { TypedEventEmitter } from 'main-event'
import type { Mortice, MorticeOptions } from './index.js'
import type { MorticeEvents } from './mortice.js'
import type { TypedEventTarget } from 'main-event'
export default (options: Required<MorticeOptions>): Mortice | TypedEventTarget<MorticeEvents> => {
// react-native is single-process only
return new TypedEventEmitter()
}