Daniel Barta
  • Home
  • Angular
  • Multimedia
  • Today I Learned
  • Contact

TypeScript

A collection of 3 posts
Angular

TypeScript's Literal Types Are Better Than Enums

Combining the descriptive qualities of enumerated types and the easy-to-use nature of strings. During a code review, something that sticks out when the code is full of ad-hoc string checking. For example, implementing a blog engine with three types of roles can start with a check if the user is
09 May 2022 4 min read
TypeScript

How to list the possible values of a string literal union type in TypeScript

String literals are one of the most straightforward and powerful tools of TypeScript. But until v3.4, it was impossible to list its accepted values. Developers needed to fall back to enums. Not a problem anymore.
25 Apr 2022 2 min read
Firebase

Create Cloud Functions in Firebase

Authorization, CRUD, queries, most of the things come out of the box with Firestore. However, sometimes there is a need to make some modifications which would be too sensitive to do in the browser.
13 Jul 2020 1 min read
Page 1 of 1
Daniel Barta © 2026
  • linkedin
  • stackoverflow
Powered by Ghost