How do I specify [unknown] for a self written function?

Hey everyone! I’ve wanted to ask this question for a pretty long time:
image
What does [unknown] mean? Why is it there?
Built-in Luau functions also have something like this: image
Seems like they can specify what arguments they want you to pass in there, can I by any chance specify that too?

That is the intellisense just not being smart enough yet.

image

It works fine with literals but when it needs to do any operations at runtime such as addition then that is where it can’t say the type anymore

image

I imagine once intellisense is overhauled these issues will be fixed

3 Likes