Advertisement
rb_correa

Typescript node23

Jul 26th, 2024 (edited)
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.15 KB | Source Code | 0 0
  1. <!-- Node 23 PR/53725 -->
  2. https://github.com/nodejs/node/pull/53725#issuecomment-2227006441
  3.  
  4. <!-- Online typescript environment -->
  5. https://codesandbox.io/p/devbox/node--experimental-strip-types-with-node-js-nightly-dxdtmp?file=%2Findex.ts
  6.  
  7. <!-- NVS Node Version Switcher -->
  8. https://github.com/jasongin/nvs
  9.  
  10. <!-- How to install the nightly version locally -->
  11. 1. First install NVS inside your machine:
  12.   - for windows users go here: https://github.com/jasongin/nvs?tab=readme-ov-file#windows
  13.   - for linux/mac go here: https://github.com/jasongin/nvs?tab=readme-ov-file#mac-linux
  14. 2. After that you need to add the the nightly channel inside nvs:
  15.   - nvs remote add nightly https://nodejs.org/download/nightly/
  16. 3. After running the previous command just type `nvs` in the command line and hit enter, the output below will be shown:
  17. .---------------------------------------------------.
  18. | Select a remote                                   |
  19. +---------------------------------------------------+
  20. | [a] node     https://nodejs.org/dist/             |
  21. |  b) nightly  https://nodejs.org/download/nightly/ |
  22. '---------------------------------------------------'
  23. 4. Select the nightly channel, then the following output will appear:
  24. .----------------------------------------------------------------------------.
  25. | Select a nightly version                                                   |
  26. +----------------------------------------------------------------------------+
  27. | [a] nightly/23.0.0-nightly20240726d955497874                               |
  28. |  b) nightly/23.0.0-nightly202407253de7a4c374                               |
  29. |  c) nightly/23.0.0-nightly20240724aeaffbb385                               |
  30. |  d) nightly/23.0.0-nightly20240723cad73dadba                               |
  31. |  e) nightly/23.0.0-nightly20240722259163802c                               |
  32. |  f) nightly/23.0.0-nightly2024072179759fa0ac                               |
  33. |  g) nightly/23.0.0-nightly20240720cf8e5356d9                               |
  34. |  h) nightly/23.0.0-nightly20240719a523c345b1                               |
  35. |  i) nightly/23.0.0-nightly20240718bcec922e3e                               |
  36. |  j) nightly/23.0.0-nightly2024071586415e4688                               |
  37. |  k) nightly/23.0.0-nightly20240712fc233627ed                               |
  38. |  l) nightly/23.0.0-nightly2024071197918364f6                               |
  39. |  m) nightly/23.0.0-nightly20240710e849dd6632                               |
  40. |  n) nightly/23.0.0-nightly20240709b9289a6e29                               |
  41. |  o) nightly/23.0.0-nightly2024070366b76e24e2                               |
  42. '--\/------------------------------------------------------------------------'
  43. 5. Select any build higher than the `nightly/23.0.0-nightly202407253de7a4c374` version
  44. 6. Then you have to make this version available by running the command:
  45.    - nvs link nightly/23.0.0-nightly<your selected version>/x64
  46. 7. After that, open vscode create a .ts file, and run the given command:
  47.    - node --experimental-strip-types <your file>.ts
  48. 8. Finally you need to clean everything:
  49.    - nvs rm nightly/23.0.0-nightly<your selected version>/x64
Tags: post linkedin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement