UNPKG

comctx

Version:

Cross-context RPC solution with type safety and flexible adapters.

9 lines (6 loc) 218 B
import { provideCounter } from '../shared' import ProvideAdapter from './ProvideAdapter' const counter = provideCounter(new ProvideAdapter()) counter.onChange((value) => { console.log('WebWorker Value:', value) })