Skip to content

Commit

Permalink
Add posebility for nil checks
Browse files Browse the repository at this point in the history
  • Loading branch information
projecteon committed Sep 13, 2022
1 parent 90fc426 commit a89a961
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions mq.lua
Expand Up @@ -174,28 +174,28 @@ function TLO.Bool() end

---@param index integer
---@param filter string
---@return spawn
---@return spawn | fun(): string|nil
---@overload fun(filter: string): spawn
function TLO.NearestSpawn(index, filter)end

---Finds an Item by the item ID
---@param id integer
---@return item
---@return item | fun(): string|nil
function mq.TLO.FindItem(id)end

---Finds an Item by the item Name
---Finds an Item by the partial item Name (use of '=' infront of name forces exact match)
---@param name string
---@return item
---@return item | fun(): string|nil
function mq.TLO.FindItem(name)end

---Finds an Item in the bank by the item ID
---@param id integer
---@return item
---@return item | fun(): string|nil
function mq.TLO.FindItemBank(id)end

---Finds an Item in the bank by the item Name
---Finds an Item in the bank by the partial item Name (use of '=' infront of name forces exact match)
---@param name string
---@return item
---@return item | fun(): string|nil
function mq.TLO.FindItemBank(name)end

---Return a counts of Items by the item ID
Expand Down Expand Up @@ -249,12 +249,12 @@ function mq.TLO.Plugin(name)end

---Returns a Spawn by ID
---@param id integer
---@return spawn
---@return spawn | fun(): string|nil
function mq.TLO.Spawn(id)end

----Returns a Spawn by use of a [Spawn Search](https://docs.macroquest.org/reference/general/spawn-search/) filter
---@param filter string
---@return spawn
---@return spawn | fun(): string|nil
function mq.TLO.Spawn(filter)end

---Number of items on the ground in this zone (filter is optional)
Expand All @@ -269,12 +269,12 @@ function mq.TLO.SpawnCount(filter)end

---Returns a Spell by ID
---@param id integer
---@return spell
---@return spell | fun(): string|nil
function mq.TLO.Spell(id)end

----Returns a Spell by Name
---@param name string
---@return spell
---@return spell | fun(): string|nil
function mq.TLO.Spell(name)end

---Returns a Skill by number
Expand Down

0 comments on commit a89a961

Please sign in to comment.