I'm trying to use type checking because it's helpful and I like it.
It all works just fine, except when I need to require something from ReplicatedStorage.
Because the linter can't handle non-static paths for require, I can't get the exported type from the class.
-- Solves type checking error, does not actually set the type
local Logger = require(ReplicatedStorage:WaitForChild("Utility").Classes.Logger)
-- I expect to be able to do this, but it does not work (typechecking error), no intellisense
local myLogger : Logger.Logger = Logger.new()
So I'm stuck here really trying to make it work so I can pull the exported type from the required module.
Has anyone done this before and have a workaround? I've googled this quite a lot and the suggested work arounds just don't work.
I tried using Rojo, but it seems it hasn't been updated since 2021, and Visual Studio Code seems to have a similar issue, and the Rojo plugin doesn't seem to be able to actually change code.
Edit
Turns out I'm stupid and I just wasn't using the right path in the require
** You are now Level 11! **