#How do I type annotate this?

2 messages · Page 1 of 1 (latest)

nocturne condor
#

I'm working on a module that has a custom service system. I noticed that game:GetService() takes in these arguments

(ClassName: string): Instance

But even if the type is string, it autofills for each available ClassName
From what I've seen, to have the lintern autofill for each given type, you do

type TypeName = type1|type2|type3|type4

This works great, but is there a way where instead of the lintern showing the union types, it just displays the name of the type

sudden vigil
#

@nocturne condor do u got how to do this? because im interested too