Currently in Cristal, re-exports in TypeScript are done this way:
import { obj } from 'module';
export { obj };
I think it would be better to use the following syntax, which is built into TypeScript:
export { obj } from 'module';
It makes the code both more readable and more maintainable, avoiding duplicates.
What do you think?
2 posts - 2 participants