What would be the ideal file structure to put classes referenced in a worker, but should not be dire

What would be the ideal file structure to put classes referenced in a worker, but should not be directly routeable? Like file1.ts imports classA.ts and classB.ts but the class files should not be directly visitable, but file1.ts would be /file1. Will /functions/file1.ts be able to import from ../someFolder/classA.ts?
Was this page helpful?