pending.nvim/lua/pending
Barrett Ruth 2b73ab1cd0 fix: resolve remaining LuaLS type errors
Problem: CI lua-typecheck-action reported three categories of errors:
1. parse.lua - multi-assignment of tonumber() results left y/m/d typed
   as number? rather than integer, failing os.time()'s field types
2. gcal.lua - url_encode returned str:gsub() which yields string+integer
   but the annotation declared @return string (redundant-return-value)
3. gcal.lua - calendar_id typed string? from find_or_create_calendar was
   passed to functions expecting string; the existing `if err` guard did
   not narrow the type for LuaLS

Solution: replace the y/m/d multi-assignment with yn/mn/dn locals whose
types resolve cleanly to integer; wrap the gsub return in parentheses to
discard the count; add `or not calendar_id` to the error guard so LuaLS
narrows calendar_id to string for the rest of the scope.
2026-02-24 18:50:28 -05:00
..
sync fix: resolve remaining LuaLS type errors 2026-02-24 18:50:28 -05:00
buffer.lua feat(buffer): add category folds via foldexpr 2026-02-24 18:44:13 -05:00
config.lua feat: overdue highlighting, relative dates, undo write, buffer mappings (#1) 2026-02-24 18:33:07 -05:00
diff.lua feat: overdue highlighting, relative dates, undo write, buffer mappings (#1) 2026-02-24 18:33:07 -05:00
health.lua feat: rename 2026-02-24 15:21:44 -05:00
init.lua feat(init): multi-level undo, quickfix due, BufEnter reload 2026-02-24 18:44:13 -05:00
parse.lua fix: resolve remaining LuaLS type errors 2026-02-24 18:50:28 -05:00
store.lua feat(store): add snapshot() and atomic json write 2026-02-24 18:44:13 -05:00
views.lua feat: overdue highlighting, relative dates, undo write, buffer mappings (#1) 2026-02-24 18:33:07 -05:00