home.social

#constenums — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #constenums, aggregated by home.social.

  1. 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.

    allthingstypescript.dev/p/why-

  2. 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

    allthingstypescript.dev/p/why-

  3. 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

    allthingstypescript.dev/p/why-

  4. 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

    allthingstypescript.dev/p/why-

  5. 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

    allthingstypescript.dev/p/why-