TypeScript type definitions for the REAPER DAW Lua API, enabling type-safe scripting with TypeScript when using the TypeScriptToLua transpiler. Current stable version is 7.72.1. Primarily updated to match REAPER API changes. Key differentiator: provides full type coverage for REAPER-specific functions (reaper.*, gfx.*) and integrates seamlessly with TypeScriptToLua's compilation pipeline. Requires TypeScript >=4.1.0 and TypeScriptToLua >=1.10.0 as peer dependencies.
npm install reaper-lua-typesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: tsconfig setup with required types, then a simple script using global reaper API and explicit type import.
Review REAPER API release notes and adjust scripts accordingly.
Use tsconfig types field to enable global types without import.
Use the latest REAPER API and TypeScript types to avoid deprecated functions.
Ensure you have typescript-to-lua >=1.10.0 installed and configured.
Add "types": ["reaper-lua-types"] to tsconfig compilerOptions.
Use import type { Track } from 'reaper-lua-types' or rely on global types.Ensure tsconfig includes "module": "CommonJS" or set tstl.luaTarget appropriately.