Typescript API Routing with Decorators! [Part 2]

Поділитися
Вставка
  • Опубліковано 4 лют 2025

КОМЕНТАРІ • 10

  • @adedotunadedigba466
    @adedotunadedigba466 11 місяців тому +2

    Ooh nice, thank you so much.

  • @asap.bartek
    @asap.bartek 6 місяців тому +1

    How can i handle form-data request? btw great video 👍

  • @sebastianovalle8581
    @sebastianovalle8581 8 місяців тому

    Hi, very helpful, do you know why these errors appear, when I use the example TS2339: Property 'defineMetadata' does not exist on type 'typeof Reflect'.

    • @TheNerdyCanuck
      @TheNerdyCanuck  7 місяців тому

      I think you need to include reflect-metadata in your main server file or make sure your tsconfig is configured proeprly

  • @ibrahimacar2702
    @ibrahimacar2702 4 місяці тому

    hello in my case route is defining as follows: 'Loading route: get undefined/healthcheck' do u have an idea why it can be?

    • @TheNerdyCanuck
      @TheNerdyCanuck  3 місяці тому

      This means the controller isn't properly giving you back the string inside the function that defines all the routing.

  • @sdawdwadaufyuaiudi2148
    @sdawdwadaufyuaiudi2148 8 місяців тому +2

    for a new comer Decorators kind da hard for me , is it from nextjs ?

  • @govindamishra3746
    @govindamishra3746 4 місяці тому

    Dude uses Javascript Classes in 2024 lmao 🤣 Tell me you use class components in react as well 😂😂😂😂

    • @TheNerdyCanuck
      @TheNerdyCanuck  4 місяці тому +2

      Decorators can cascade a unlimited amount and reduce rewriting code