From 63de62cd0b0b53c5946d67ee2a3c2dac16379707 Mon Sep 17 00:00:00 2001 From: William Boman Date: Thu, 14 Jul 2022 17:27:12 +0200 Subject: chore: change emmylua annotation syntax from @ to : for comments (#73) --- lua/mason-core/managers/npm/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lua/mason-core/managers/npm/init.lua') diff --git a/lua/mason-core/managers/npm/init.lua b/lua/mason-core/managers/npm/init.lua index 828afd12..b3aa0f0b 100644 --- a/lua/mason-core/managers/npm/init.lua +++ b/lua/mason-core/managers/npm/init.lua @@ -36,7 +36,7 @@ local function with_receipt(packages) end ---@async ----@param packages { [number]: string, bin: string[] | nil } @The npm packages to install. The first item in this list will be the recipient of the requested version, if set. +---@param packages { [number]: string, bin: string[] | nil }: The npm packages to install. The first item in this list will be the recipient of the requested version, if set. function M.packages(packages) return function() return M.install(packages).with_receipt() @@ -44,7 +44,7 @@ function M.packages(packages) end ---@async ----@param packages { [number]: string, bin: string[] | nil } @The npm packages to install. The first item in this list will be the recipient of the requested version, if set. +---@param packages { [number]: string, bin: string[] | nil }: The npm packages to install. The first item in this list will be the recipient of the requested version, if set. function M.install(packages) local ctx = installer.context() local pkgs = list_copy(packages) @@ -77,14 +77,14 @@ function M.install(packages) end ---@async ----@param exec_args string[] @The arguments to pass to npm exec. +---@param exec_args string[]: The arguments to pass to npm exec. function M.exec(exec_args) local ctx = installer.context() ctx.spawn.npm { "exec", "--yes", "--", exec_args } end ---@async ----@param script string @The npm script to run. +---@param script string: The npm script to run. function M.run(script) local ctx = installer.context() ctx.spawn.npm { "run", script } -- cgit v1.2.3-70-g09d2