• 30 Posts
  • 344 Comments
Joined 1 year ago
cake
Cake day: June 2nd, 2024

help-circle

  • bleistift2@sopuli.xyztoProgrammer Humor@programming.devThis is literally me
    link
    fedilink
    English
    arrow-up
    92
    arrow-down
    2
    ·
    edit-2
    21 hours ago
    1. Rename every file from *.js to *.ts
    2. Set the compiler options
      {
        "checkJs": false,
        "allowJs": true,
        "noEmitOnError": false, // so the compiler compiles code it can’t prove right yet. Reset this after you’re done migrating
      }
      
    3. Install type packages for dependencies that don’t bring type information out of the box, for instance
      npm i -D @types/d3
      
    4. Add // @ts-nocheck to the beginning of every file.
    5. Go through your project file by file, remove the comment from (4) and add types until the errors are gone. And probably fix some errors along the way.

    Abbreviated from “TypeScript Cookbook” by Stefan Baumgartner.











  • No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.







  • Why I ditched Manjaro and came back to Mint:

    • I find the package manager clunky. Why is the flag to install something -Ss?
    • At some point I couldn’t upgrade packages anymore because they somehow got in conflict. I never bothered to find out what caused that and what the fix would’ve been. I just ran back to mommy Mint’s welcoming arms.