feat: add LuaCATS type annotations across all modules #36

Merged
barrettruth merged 1 commit from feat/luacats-types into main 2026-03-22 21:47:36 +00:00
barrettruth commented 2026-03-22 21:42:50 +00:00

Problem

The codebase lacked type annotations on most local functions, module tables, and column definitions, limiting IDE support and static analysis coverage.

Solution

Add @class, @field, @param, @return, @type, and @private annotations to all 12 Lua source files. Introduce three new classes (canola.git.Config, canola.git.CacheEntry, canola.git.StatusResult) in canola-git/init.lua and type all column tables with canola.ColumnDefinition across adapters.

## Problem The codebase lacked type annotations on most local functions, module tables, and column definitions, limiting IDE support and static analysis coverage. ## Solution Add `@class`, `@field`, `@param`, `@return`, `@type`, and `@private` annotations to all 12 Lua source files. Introduce three new classes (`canola.git.Config`, `canola.git.CacheEntry`, `canola.git.StatusResult`) in `canola-git/init.lua` and type all column tables with `canola.ColumnDefinition` across adapters.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/canola-collection!36
No description provided.