Commit 9e3e1da

Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2022-05-28 22:21:02
Make `which` a default import in index.d.ts (#412)
index.mjs does `import which from "which"`, not `import * as which from "which"`; this causes problems when you are in TypeScrip's module mode because it automatically disables the interop setting which makes calling a `*` imported module as a function legal.
1 parent 4a05137
Changed files (1)
src/index.d.ts
@@ -23,7 +23,7 @@ declare module 'zx' {
   import * as _yaml from 'yaml'
   import _fetch from 'node-fetch'
   import { ParsedArgs } from 'minimist'
-  import * as _which from 'which'
+  import _which from 'which'
 
   export interface ZxTemplate {
     (