Is your feature request related to a problem? Please describe.
Figure out a way to better handle cases like
|
---@param props {change: integer?, emphasisThreshold: integer?} |
|
---@return Renderable? |
|
local function PlacementChangeWidget(props) |
|
---@cast props {change: integer, emphasisThreshold: integer} |
, where default props make it optional for a caller, but promises that it exists within the function.
Additional context
Maybe using Partial Classes is the only possible way?
Is your feature request related to a problem? Please describe.
Figure out a way to better handle cases like
Lua-Modules/lua/wikis/commons/Widget/Standings/PlacementChange.lua
Lines 52 to 55 in 60e88d5
Additional context
Maybe using Partial Classes is the only possible way?