tsql.nvim/lua/tsql/category.lua

11 lines
308 B
Lua
Raw Normal View History

2023-06-03 20:53:06 +00:00
-- Interface-only file for type-hints
--
---@generic T
---@generic R
---
---@alias Ctor<T, R> fun(arg: T): R
---A good practice is to only has a single argument per ctor/class method.
---If you need multiple arguments, having explicit names is much better than
---positional args, unless you want currying.