Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

well this shell is just broken

  > ls -al
  <repl>.ts:4:1 - error TS2304: Cannot find name 'ls'.
  
  4 ls -al
    ~~
  <repl>.ts:4:5 - error TS2304: Cannot find name 'al'.
  
  4 ls -al
        ~~


Easy...

    $`ls -al`
or

    ls('al')
And, transpile shortcut strings on-the-fly to TS code:

    ls({
      all: true,
      oneEntryPerLine: true,
    })




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: