vscode/build/linux/rpm/types.ts

11 lines
537 B
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export type RpmArchString = 'x86_64' | 'armv7hl' | 'aarch64';
export function isRpmArchString(s: string): s is RpmArchString {
return ['x86_64', 'armv7hl', 'aarch64'].includes(s);
}