提交学习笔记专用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
521 B

  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>;