IPC for abstract message channels, comlink style.
npm install abslinkts
import { expose } from 'abslink'
export default expose({
add: (a: number, b: number) => a + b
})
`
and
`ts
import { wrap } from 'comlink'
import worker from './exposed.ts?worker'
import type Maths from './exposed.ts'
const threaded = wrap(worker)
const res = await threaded.add(1, 3) // 4
``