Dependent return value types for declared functions #2014
Replies: 1 comment
-
|
I think I should ask this on the Luau LSP repository instead |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to implement support for Luau's Analyzer via Luau LSP for Visual Studio Code in my runtime. I've gotten most of the way there, and the main thing left is adding a function which returns a type dependent on it's input, similar to
Instance.newin Roblox. I tried looking through Luau LSP'sglobalTypes.d.luau, but I couldn't figure out how it worked.Essentially:
Beta Was this translation helpful? Give feedback.
All reactions