@codart
Programming
Nothing here yet.
Nothing here yet.
No blogs yet.
CHI PUTERA Ah, I see. Thanks for clarifying. I'm also interested in this topic. Do you think we can do something like macro in typescript? Say I need to gather all file names in a given folder and make it be a union, something like: type AllFileName = FilesAsUnion< `./path/to/folder` > // emit: AllFileName = 'foo' | 'bar' | 'baz' | ... of course, I can write a script to watch the folder and emit generated type. But it looks not that good
I feel you. Learn to be a programer these days is really hard, especially for web development. I personally recommend you to take an online or offline course. The point is you have someone to answer to your questions. In addition, course give you the fundamental and in the end you will have a good sense of programming. When you have a strong foundation, you can confidently explore more and more. Without losing the direction. Good luck have fun