Dependent return value types for externally-declared functions #1208
Unanswered
PhoenixWhitefire
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Beta Was this translation helpful? Give feedback.
3 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 one of the main things left is adding a function which returns a type dependent on it's input, similar to
Instance.newin Roblox. I tried looking through theglobalTypes.d.luau, but I couldn't figure out how it worked.Essentially:
Currently, I just have the
Objectlibrary defined as:Beta Was this translation helpful? Give feedback.
All reactions