Tags

Posts filtered by the tag typescript

  • TS Basic: Type VS Interface

    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.

  • TS Basic: Typing Promises and Async Request

    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?

  • TS for React: Prop Types

    October 21, 2023

    Here are some basic type and useful prop types when using Typescript in React.

  • TS Basic: Literal Types

    August 20, 2023

    Literal Types allow you to SPECIFY that a variable or parameter MUST HAVE A PARTICULAR value

  • TS Basic: Type Assertion

    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.

  • TS Basic: Interfaces

    July 25, 2023

    Interface declaration is another way to name an object type.

  • TS Basic: Type Aliases

    July 22, 2023

    Type aliases are a way of creating a custom name for your type variables, functions and objects for reusability and readability.

  • TS Basic: Type Annotation

    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.

  • Login / Logout / User Authentication

    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.

  • TS Basic: Everyday Types

    June 16, 2023

    Notes for Typescript different types and their use cases.