Installation
Requirements
Section titled “Requirements”- Node.js >= 22.12.0
- TypeScript >= 5.0
Install
Section titled “Install”npm install @mantaq/core# orpnpm add @mantaq/coreOptional helpers:
npm install @mantaq/sugar# orpnpm add @mantaq/sugarWhat you get
Section titled “What you get”@mantaq/core:Actor,Context,state,event,VirtualClock,RealClock@mantaq/sugar:matches,states,events,tag,isIn,activeLeaves,ActorMap,onOutput,withPromise,withTimeout,actorSpec,definePart,use,withParts
sugar needs core. Only core is required.
TypeScript config
Section titled “TypeScript config”Nothing special required. Standard works:
{ "compilerOptions": { "target": "ES2022", "module": "ESNext", "moduleResolution": "bundler" }}