feat(utils): add type annotations and inline documentation to various utility modules

This commit is contained in:
2024-08-31 03:02:33 -04:00
parent 5ef3bc7445
commit a23fc9c643
9 changed files with 173 additions and 42 deletions
+13 -1
View File
@@ -1,13 +1,25 @@
---@module "data"
--- This module aggregates various utility modules used throughout the configuration.
--- It provides a centralized way to access keymaps, data types, utility functions, commands, and dashboard utilities.
local keys = require("data.keys")
local types = require("data.types")
local func = require("data.func")
local cmd = require("data.cmd")
local deps = require("data.deps")
local dash = require("data.dash")
return {
---@alias DataModule
---| { keys: table, types: table, func: table, cmd: table, deps: table, dash: table }
---@type DataModule
local data = {
keys = keys,
types = types,
func = func,
cmd = cmd,
deps = deps,
dash = dash,
}
return data