File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
app/[locale]/download/archive/[version]
components/Downloads/DownloadsTable Expand file tree Collapse file tree 4 files changed +5
-5
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ import { useTranslations } from 'next-intl';
22import type { FC } from 'react' ;
33
44import Link from '#site/components/Link' ;
5- import type { NodeDownloadArtifact } from '#site/types' ;
5+ import type { DownloadArtifact } from '#site/types' ;
66import { OperatingSystemLabel } from '#site/util/download' ;
77
88type DownloadsTableProps = {
9- source : Array < NodeDownloadArtifact > ;
9+ source : Array < DownloadArtifact > ;
1010} ;
1111
1212const DownloadsTable : FC < DownloadsTableProps > = ( { source } ) => {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export type DownloadDropdownItem<T extends string> = {
3131 compatibility : DownloadCompatibility ;
3232} & Omit < SelectValue < T > , 'label' > ;
3333
34- export type NodeDownloadArtifact = {
34+ export type DownloadArtifact = {
3535 file : string ;
3636 kind : DownloadKind ;
3737 os : OperatingSystem ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import semVer from 'semver';
33import type {
44 DownloadDropdownItem ,
55 DownloadKind ,
6- NodeDownloadArtifact ,
6+ DownloadArtifact ,
77 OperatingSystem ,
88 Platform ,
99} from '#site/types' ;
@@ -50,7 +50,7 @@ const getCompatibleArtifacts = ({
5050 exclude = [ ] ,
5151 version,
5252 kind = 'binary' ,
53- } : CompatibleArtifactOptions ) : Array < NodeDownloadArtifact > => {
53+ } : CompatibleArtifactOptions ) : Array < DownloadArtifact > => {
5454 return Object . entries ( platforms ) . flatMap ( ( [ os , items ] ) => {
5555 if ( exclude . includes ( os ) ) return [ ] ;
5656
You can’t perform that action at this time.
0 commit comments