#constenums — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #constenums, aggregated by home.social.
-
Why do we have const enums in Typescript?
The article highlights how const enums are more efficient as they get inlined during transpilation, avoiding the extra code generation associated with regular enums. This can lead to smaller JavaScript files and faster build times. The author also provides examples and discusses the practical applications of both types of enums.
#TypeScript #Enums #ConstEnums #CodeOptimization #Programming
https://www.allthingstypescript.dev/p/why-do-we-have-const-enums-in-typescript
-
Why do we have const enums in Typescript?
The article highlights how const enums are more efficient as they get inlined during transpilation, avoiding the extra code generation associated with regular enums. This can lead to smaller JavaScript files and faster build times. The author also provides examples and discusses the practical applications of both types of enums.
#TypeScript #Enums #ConstEnums #CodeOptimization #Programming
https://www.allthingstypescript.dev/p/why-do-we-have-const-enums-in-typescript
-
Why do we have const enums in Typescript?
The article highlights how const enums are more efficient as they get inlined during transpilation, avoiding the extra code generation associated with regular enums. This can lead to smaller JavaScript files and faster build times. The author also provides examples and discusses the practical applications of both types of enums.
#TypeScript #Enums #ConstEnums #CodeOptimization #Programming
https://www.allthingstypescript.dev/p/why-do-we-have-const-enums-in-typescript
-
Why do we have const enums in Typescript?
The article highlights how const enums are more efficient as they get inlined during transpilation, avoiding the extra code generation associated with regular enums. This can lead to smaller JavaScript files and faster build times. The author also provides examples and discusses the practical applications of both types of enums.
#TypeScript #Enums #ConstEnums #CodeOptimization #Programming
https://www.allthingstypescript.dev/p/why-do-we-have-const-enums-in-typescript
-
Why do we have const enums in Typescript?
The article highlights how const enums are more efficient as they get inlined during transpilation, avoiding the extra code generation associated with regular enums. This can lead to smaller JavaScript files and faster build times. The author also provides examples and discusses the practical applications of both types of enums.
#TypeScript #Enums #ConstEnums #CodeOptimization #Programming
https://www.allthingstypescript.dev/p/why-do-we-have-const-enums-in-typescript