some type stuff

This commit is contained in:
Lera Elvoé 2025-02-16 00:19:54 +03:00
parent 4c5006d1e7
commit b7e027cdc6
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc
2 changed files with 3 additions and 1 deletions

View File

@ -4,9 +4,11 @@ local Vector3 = require "types.vector3"
local List = require "types.list"
local Feed = require "classes.feed"
---@type List
local feed = List()
local Duck = require "classes.duck"
---@type List
local ducks = List()
local function create_feed(position, direction)

View File

@ -154,7 +154,7 @@ function List:shuffled()
end
---Returns a sorted copy of this list.
---@param f? fun(a: any, b: any)
---@param f? fun(a: any, b: any): boolean
---@return List
function List:sorted(f)
local list = self:copy()