target-platform.d.mts 407 B

1234567891011121314
  1. export type TargetPlatformOs = "darwin" | "win32" | "linux";
  2. export type TargetPlatformArch = "x64" | "arm64";
  3. export interface TargetPlatform {
  4. os: TargetPlatformOs;
  5. arch: TargetPlatformArch;
  6. key: string;
  7. npmOs: TargetPlatformOs;
  8. npmCpu: TargetPlatformArch;
  9. npmLibc?: "glibc";
  10. }
  11. export function getTargetPlatform(): TargetPlatform;
  12. export function resolvePlatformKeyForPackagedApp(): string;