[@types/node] childProcess.fork modulePath argument may be string or URL #69812
-
|
I am trying to use
I was attempting to do it that way because the Node documentation for fork says that node has supported either a string or URL since v.16.14.0
Would it be possible to update the type definition for fork so that modulePath accepts either a string or URL? I appreciate your time. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
Thanks for the discussion about "node", some useful links for everyone: Pinging the DT module owners: @microsoft, @jkomyno, @alvis, @r3nya, @btoueg, @smac89, @Touffy, @DeividasBakanas, @eyqs, @Hannes-Magnusson-CK, @hoo29, @kjin, @ajafff, @islishude, @mwiktorczyk, @mohsen1, @galkin, @parambirs, @eps1lon, @ThomasdenH, @WilcoBakker, @wwwy3y3, @samuela, @kuehlein, @bhongy, @chyzwar, @trivikr, @yoursunny, @qwelias, @ExE-Boss, @peterblazejewicz, @addaleax, @victorperin, @ZYSzys, @nodejs, @LinusU, @wafuwafu13, @mcollina, @Semigradsky. |
Beta Was this translation helpful? Give feedback.
-
|
Yes make a PR |
Beta Was this translation helpful? Give feedback.
-
|
It looks like omission (legit, probably docs were incomplete in the past). The implementation works both with string or URLs: |
Beta Was this translation helpful? Give feedback.
-
|
fix: #69819 69819 |
Beta Was this translation helpful? Give feedback.


fix: #69819 69819