Node 24 upgrade

Doing an upgrade for node 24, node 24 is stricter with types so need to add a type for achitecture
This commit is contained in:
Salman Muin Kayser Chishti
2025-07-31 11:28:58 +01:00
parent 8e57b58e57
commit abe7d6b8af
6 changed files with 20 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
import os from 'os';
import {Architecture} from './types';
export function getPlatform(): string {
// darwin and linux match already
@@ -15,7 +16,7 @@ export function getPlatform(): string {
return plat;
}
export function getArch(arch: string): string {
export function getArch(arch: Architecture): string {
// 'arm', 'arm64', 'ia32', 'mips', 'mipsel', 'ppc', 'ppc64', 's390', 's390x', 'x32', and 'x64'.
// wants amd64, 386, arm64, armv61, ppc641e, s390x