11 lines
308 B
Lua
11 lines
308 B
Lua
-- 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.
|