Posts filtered by the tag typescript
September 19, 2024
When do we use type vs interface? Which should we use? When do we use type and interface? And why I’m starting my post like this? I read too many self-help books I guess.
September 13, 2024
What if our data is coming from an API? How do we ensure we have type-safe on our `async` function data?
October 21, 2023
Here are some basic type and useful prop types when using Typescript in React.
August 20, 2023
Literal Types allow you to SPECIFY that a variable or parameter MUST HAVE A PARTICULAR value
August 10, 2023
Sometimes you will have information about the type of value that TS can’t know about. Type assertions are used to explicitly specify the type of a value when the TS compiler is unable to infer it automatically.
July 25, 2023
Interface declaration is another way to name an object type.
July 22, 2023
Type aliases are a way of creating a custom name for your type variables, functions and objects for reusability and readability.
July 9, 2023
Type annotation is where you can optionally add a type to explicitly specify the type of the variables, function ( parameters and return ), and objects.
June 25, 2023
My first time adding User Authentication / Login Logout integration to my client project was an awesome experience. I’ve always been just doing the CRUD, Component before and giving me the opportunity to do the Login credentials was pretty cool.
June 16, 2023
Notes for Typescript different types and their use cases.