I can’t make plugins in strict mode becouse of that.
settings() does not return GlobalSettings in annotations hower it should
Thanks for reporting. Has this behavior worked previously? Or is this a long-persisting bug?
1 Like
No it hasn’t.
It looks like type that function settings() returns is wrong.
It meant to be ()->GlowbalSettings
But instead returns a random type
1 Like
I can reproduce on my end - we will investigate a fix.
In the meanwhile, is there a reason why the settings()
must be explicitly typed? E.g. could you use local s = settings()
?
Sure:
--!strict
local settings:GlobalSettings = settings()
It will error