index.d.ts 521 B

123456789101112131415161718192021
  1. /**
  2. Check if the current environment is Windows Subsystem for Linux (WSL).
  3. */
  4. export const isWsl: boolean;
  5. /**
  6. Get the PowerShell executable path in WSL environment.
  7. */
  8. export function powerShellPathFromWsl(): Promise<string>;
  9. /**
  10. Get the PowerShell executable path for the current environment.
  11. Returns WSL path if in WSL, otherwise returns Windows path.
  12. */
  13. export function powerShellPath(): Promise<string>;
  14. /**
  15. Get the mount point for fixed drives in WSL.
  16. */
  17. export function wslDrivesMountPoint(): Promise<string>;