TypeScript declarations for MistWarp's engine packages and API. The engine repositories (scratch-vm, scratch-render, scratch-audio, scratch-blocks, scratch-paint) stay plain JavaScript; this package describes the parts other repositories rely on, so scratch-gui and other consumers can type-check against them.
Add the package as a dev dependency, then list it in compilerOptions.types:
{"compilerOptions": {"types": ["@mistwarp/types"]}}import VirtualMachine from 'scratch-vm' is then typed.
How the declarations are organised and kept in step with the engine is covered in the contributing docs.