Is there something I can do have type checking for passed in functions?
---@param fn fun(i: integer)
local function accepts_integer_function(fn)
end
---@type fun(s: string)
local function mismatching_function(s)
end
-- expecting this to raise an error, but it doesn't
accepts_integer_function(mismatching_function)
Is there something I can do have type checking for passed in functions?