Wrote about TypeScript

7 People have highlighted this activity

Activity Feed

Frontend developer, Meilleurs Agents
Jan 21, 2022
I hope everyone's doing well! This week's post ✍
An overview of the type unknown in Typescript https://oliviac.dev/blog/an-overview-of-unknown-typescript

PS.: I never thought I would be able to write more than one or two posts this month, but here we are with the fourth one :)
Read more
Software Developer, Userlike
Oct 28, 2020

Unit Testing in JavaScript


Unit tests are also known as component tests.
They take the smallest piece of testable code (in most cases functions) and check if it behaves as expected.
Read more
Software Developer, Userlike
Sep 26, 2020

Custom Type Guards in TypeScript


My previous post showed with some short code snippets 5 useful TypeScript ticks. One of those tricks was a User-Defined Type Guard. Since this "trick" has attracted a lot of attention, I decided to write this short post to make this concept easier to understand.
Read more
Software Developer, Userlike
Sep 24, 2020

5 useful TypeScript tricks


  1. Create a type checking function.
  2. Set all properties of an interface to optional.
  3. Get the type of the parameters of a function.
  4. Use Setters and Getters.
  5. Optional chaining.
Read more
I just published a blog post that I've been working on for a while:
The Church Encoding of Simple Algebraic Data Types

Church encodings are cool in that they're a really fundamental theoretical construct in the lambda calculus, a practical tool for making TypeScript code more succinct, and the basis for object algebras, a powerful technique for writing extensible code in object-oriented languages. This post just scratches the surface, but I hope that it will be accessible to TypeScript developers who have some familiarity with functional programming techniques.
Read more
Loading...