Just starting out in the world of TS and feeling like a newbie.
I've noticed that in Dart, each file in a directory can run independently and you have to explicitly import objects from other files if needed. For example:
file1.dart
int myFunc() => 99;
void main() {
print(myFunc());
}
file2.dart
import file1 as f1;
String myFunc() => 'Chesu!';
void main() {
print(f1.myFunc());
print(myFunc());
}
In TS, having two objects with the same name is not allowed because they are automatically imported or visible to other files in the same directory. Is there a way to disable this feature?