From 4187357a41a2430bb5b4c6ff0f0ddab52c0d4d5f Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Thu, 5 Mar 2026 11:28:29 -0500 Subject: [PATCH] fix(types): correct LuaLS annotations in oauth and gcal --- lua/pending/sync/gcal.lua | 3 ++- lua/pending/sync/oauth.lua | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lua/pending/sync/gcal.lua b/lua/pending/sync/gcal.lua index 2eabc3e..44f7742 100644 --- a/lua/pending/sync/gcal.lua +++ b/lua/pending/sync/gcal.lua @@ -169,7 +169,8 @@ function M.push() ) if should_delete then - local del_err = delete_event(access_token, cal_id, event_id) + local del_err = + delete_event(access_token, cal_id --[[@as string]], event_id --[[@as string]]) if del_err then vim.notify('pending.nvim: gcal delete failed: ' .. del_err, vim.log.levels.WARN) else diff --git a/lua/pending/sync/oauth.lua b/lua/pending/sync/oauth.lua index 022a9c7..c53e3b1 100644 --- a/lua/pending/sync/oauth.lua +++ b/lua/pending/sync/oauth.lua @@ -29,18 +29,18 @@ local M = {} ---@param args string[] ---@param opts? table ----@return vim.SystemCompleted +---@return { code: integer, stdout: string, stderr: string } function M.system(args, opts) local co = coroutine.running() if not co then - return vim.system(args, opts or {}):wait() + return vim.system(args, opts or {}):wait() --[[@as { code: integer, stdout: string, stderr: string }]] end vim.system(args, opts or {}, function(result) vim.schedule(function() coroutine.resume(co, result) end) end) - return coroutine.yield() + return coroutine.yield() --[[@as { code: integer, stdout: string, stderr: string }]] end ---@param fn fun(): nil