• ShroOmeric@lemmy.world
    link
    fedilink
    arrow-up
    29
    arrow-down
    4
    ·
    8 months ago

    I swear to god, sometimes I really don’t know what Typescript really wants from me. It’s like some old god: you know it needs a sacrifice but the god is not telling you exactly what he wants. So you can only try and pray.

      • herrvogel@lemmy.world
        link
        fedilink
        arrow-up
        13
        arrow-down
        1
        ·
        8 months ago

        The "return type <5 paragraphs of various word salads> is not compatible with " error messages are anything but easy to understand in my opinion.

        • gornius@lemmy.world
          link
          fedilink
          arrow-up
          9
          ·
          edit-2
          8 months ago

          Yeah I don’t get why it spits out whole types instead of only differences between them. Like “function expects non-null ‘some.param.in.object’ of type ‘string’ in argument ‘someArgument’, which is missing in passed argument”.

      • traches@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        5
        arrow-down
        1
        ·
        8 months ago

        Typescript got a lot easier for me when I stopped even trying to read the error messages