12 ms·
I would love to have some compile time constant resolving in typescript. I’ve got a project that generates an array based on some smaller input and it would be
by matthewfcarlson 5y ago
I would love to have some compile time constant resolving in typescript. I’ve got a project that generates an array based on some smaller input and it would be fantastic to not have to do that every time the script is loaded.
Really exciting to see people exploring new and other idea of where to take typescript.
- _hl_ 5y agoSounds like you're looking for partial evaluation for JS. From a quick search, prepack.io might suit your needs?