Hello! I've been struggling with some 'bug' that I found with typescript, I have two files:
// module.ts
export const Human = {
name: "Samy",
age: 20
}
// index.ts
import { Human } from './module.ts'
console.log(Human) // undefined
// Note: TS checking marks it correct, but when I compile to NodeJS and run it, it says that that: require('./module.js') will give { Human: undefined }
I'm struggling please help 😂