Skip to content

Commit 924e2d3

Browse files
Annotate json.lua
1 parent ab13610 commit 924e2d3

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

lsp_def/lib/json.lua

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---@meta json
2+
3+
local json = {}
4+
5+
---@type string
6+
--- JSON.lua library version.
7+
json._version = "0.1.2"
8+
9+
---@param val table|string|number|boolean|nil Must be a valid value to encode
10+
---@return string
11+
--- Encodes provided `val`.
12+
function json.encode(val) end
13+
14+
---@param str string
15+
---@return table
16+
--- Decodes provided `str`.
17+
function json.decode(str) end
18+
19+
return json

lsp_def/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
---@field hook? boolean `true` when "The Hook" discards cards.
2222
---@field card? Card|table The individual card being checked outside of scoring.
2323
---@field cards? table[]|Card[] Table of cards representing how many cards were created.
24-
---@field consumable? Card|table The Consumable being used. Only a value when `context.using_consumeable` is `true`.
24+
---@field consumeable? Card|table The Consumable being used. Only a value when `context.using_consumeable` is `true`.
2525
---@field blueprint_card? Card|table The card currently copying the eval effects.
2626
---@field no_blueprint? true Effects akin to Blueprint or Brainstorm should not trigger in this context.
2727
---@field other_context? CalcContext|table The context the last eval happened on.

0 commit comments

Comments
 (0)