You've already forked AstralRinth
forked from didirus/AstralRinth
Skip Typescript compilation on packaging
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
export function classCombine(names) {
|
||||
export function classCombine(names: string[]) {
|
||||
return names.filter((name) => name && !name.includes('undefined')).join(' ')
|
||||
}
|
||||
|
||||
@@ -76,8 +76,8 @@ export function formatVersions(versionArray: string[]): string {
|
||||
return output.join(', ')
|
||||
}
|
||||
|
||||
export const getPrimary = (files) => files.find((file) => file.primary) || files[0]
|
||||
export const getPrimary = (files: any[]) => files.find((file) => file.primary) || files[0]
|
||||
|
||||
export function downloadUrl(file): string {
|
||||
export function downloadUrl(file: any): string {
|
||||
return import.meta.env.VITE_API_URL + `version_file/${file?.hashes.sha1}/download`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user