muppet9010

Results 4 comments of muppet9010

Just hit this same issue with a different use case. ``` ---@class MapPosition ---@field x integer ---@field y integer local targetPos ---@type MapPosition ---@class Data local data = { targetPosition...

If it makes it easier to implement then rather than doing inheritance I don't see any large downsides in doing it with the `@type` applied to the function at creation...

Is there a option/setting I can use to not load the included mathlib.lua definitions you include; and then add my own version of it with generics instead of `number` types?

Thanks, generics looks to work for stopping the maths functions from warning. :) Although I have lost protection against invalid data types, i.e. boolean type being passed in to math.random()....