UNPKG

nanolith

Version:

Multi-threading in no time with seamless TypeScript support.

7 lines (6 loc) 307 B
import type { SharedUint32 } from './shared_uint32.js'; export type Counter = SharedUint32; export declare const create: () => Counter; export declare const getCount: (counter: Counter) => number; export declare const incr: (counter: Counter) => void; export declare const decr: (counter: Counter) => void;