There is way to using autocomplete like this?

I want to use Loader module’s autocomplete outside the Start function block and let the editor recognize it. (I’m doing this to prevent circular dependency.)

I already have a workaround, like requiring the module at the top and then commenting it out later. However, I want to know if there’s a way to achieve this without manually requiring and comment it every time.

image

I’m not sure if this would work but if you assign the loader local to the type of the require?

type Loader = typeof(require(script.Parent.Parent))

local Loader : Loader

I’m not sure how it’ll work with strict but it could work

1 Like

Its not work cause circular dependency its also happen to type I guess
cause its work with other script I,
I think I can just return type and require modules after Init in my LoaderModule
this is new thing on my brain

thank you!.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.