Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/samualtnorman/lib. A collection of common utilities I need. www.npmjs.com/package/@samual/lib
Something went wrong. Try again.
12345678910111213import type { Cloneable } from ".."
export type MainToChildMessage = { id: number, path: string, name: string, args: Cloneable[] }
export const ChildToMainMessageKind = { Return: 0, Throw: 1 // TODO Can be exanded to `yield` in the future} as const
export type ChildToMainMessageKind = typeof ChildToMainMessageKind[keyof typeof ChildToMainMessageKind]export type ChildToMainMessage = { kind: ChildToMainMessageKind, id: number, value: Cloneable }