Hey I have been playing around with ‘custom functions’ not sure if that’s what they are actually called, and when I was using return in them, it always said on the autocomplete, [unknown] Add(numX, numY).
Here is what I mean:
local function returnUnknow(boolean: boolean) => boolean
if boolean then
return true
else
return false
end
end
Just am trying to use the „new“ Luau type checking (ops, just realized that you now should replace the => with a : or ->, see here for more informations), do this can help?
i don’t think intellisense can analyze any type checking stuff yet, but it is plausible that at some point as the script editor is being worked on, we might get some more intelligent intellisense and what not. So when there is full native support for Luau type checking in the editor, i’m guessing we will be able to see the specified return and parameter types.