import{_ as t,a,b as n,ag as i}from"./chunks/framework.BcrMLAmg.js";const c=JSON.parse('{"title":"Lua Annotations Guide","description":"","frontmatter":{},"headers":[],"relativePath":"guides/annotations.md","filePath":"guides/annotations.md","lastUpdated":1739870373000}'),o={name:"guides/annotations.md"};function l(r,e,s,d,u,p){return n(),a("div",null,e[0]||(e[0]=[i('
Writing Lua code for CC: Tweaked and Basalt becomes much more enjoyable with proper type annotations. They provide code completion, type checking, and inline documentation.
Download the official CC: Tweaked type definitions from: CC: Tweaked Annotations
The GitHub page includes a detailed installation guide that will help you set up everything correctly.
The Basalt Dev version includes built-in type definitions that provide:
To get started, simply download the Dev version of Basalt.
For the best development experience, you'll need:
For Visual Studio Code users:
With properly configured annotations, you get: