@@ -8,8 +8,8 @@ import satisfies from 'semver/functions/satisfies';
88import type {
99 IntlMessageKeys ,
1010 NodeReleaseStatus ,
11- UserOS ,
12- UserPlatform ,
11+ OperatingSystem ,
12+ Platform ,
1313} from '#site/types' ;
1414import type * as Types from '#site/types/release' ;
1515
@@ -29,9 +29,9 @@ export const OperatingSystemLabel = Object.fromEntries(
2929
3030// Base types for dropdown functionality
3131type DownloadCompatibility = {
32- os ?: Array < UserOS | 'LOADING' > ;
32+ os ?: Array < OperatingSystem | 'LOADING' > ;
3333 installMethod ?: Array < string > ;
34- platform ?: Array < UserPlatform | '' > ;
34+ platform ?: Array < Platform | '' > ;
3535 semver ?: Array < string > ;
3636 releases ?: Array < NodeReleaseStatus > ;
3737} ;
@@ -107,7 +107,7 @@ export const OPERATING_SYSTEMS = Object.entries(systems as ActualSystems)
107107 . filter ( ( [ key ] ) => key !== 'LOADING' && key !== 'OTHER' )
108108 . map ( ( [ key , data ] ) => ( {
109109 label : data . name as IntlMessageKeys ,
110- value : key as UserOS ,
110+ value : key as OperatingSystem ,
111111 compatibility : data . compatibility ,
112112 iconImage : createIcon ( OSIcons , data . icon ) ,
113113 } ) ) ;
@@ -123,7 +123,7 @@ export const INSTALL_METHODS = installMethods.map(method => ({
123123 info : method . info as IntlMessageKeys ,
124124 compatibility : {
125125 ...method . compatibility ,
126- os : method . compatibility ?. os ?. map ( os => os as UserOS ) ,
126+ os : method . compatibility ?. os ?. map ( os => os as OperatingSystem ) ,
127127 releases : method . compatibility ?. releases ?. map (
128128 release => release as NodeReleaseStatus
129129 ) ,
@@ -148,8 +148,8 @@ export const PLATFORMS = Object.fromEntries(
148148 key ,
149149 data . platforms . map ( platform => ( {
150150 label : platform . label ,
151- value : platform . value as UserPlatform ,
151+ value : platform . value as Platform ,
152152 compatibility : platform . compatibility || { } ,
153153 } ) ) ,
154154 ] )
155- ) as Record < UserOS | 'LOADING' , Array < DownloadDropdownItem < UserPlatform > > > ;
155+ ) as Record < OperatingSystem | 'LOADING' , Array < DownloadDropdownItem < Platform > > > ;
0 commit comments