Skip Typescript compilation on packaging

This commit is contained in:
venashial
2022-06-20 23:50:33 -07:00
parent 252c812125
commit f70f670ed3
31 changed files with 171 additions and 132 deletions

View File

@@ -1,3 +1,3 @@
export function classCombine(names) {
export function classCombine(names: string[]) {
return names.filter((name) => name && !name.includes('undefined')).join(' ')
}

View File

@@ -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`
}