Skip to content

Interface File

🏷️ Properties

alternateFileId

ts
alternateFileId: number

Defined in: packages/curseforge/index.ts:272

dependencies

ts
dependencies: FileDependency[]

Defined in: packages/curseforge/index.ts:273

displayName

ts
displayName: string

Display name

Defined in: packages/curseforge/index.ts:229

downloadCount

ts
downloadCount: number

Number of downloads for the mod

Defined in: packages/curseforge/index.ts:258

downloadUrl optional

ts
downloadUrl: string

Url to download

Defined in: packages/curseforge/index.ts:263

fileDate

ts
fileDate: string

The date of this file uploaded

Defined in: packages/curseforge/index.ts:249

fileLength

ts
fileLength: number

bytes of this file.

Defined in: packages/curseforge/index.ts:253

fileName

ts
fileName: string

File name. Might be the same with displayName

Defined in: packages/curseforge/index.ts:233

fileStatus

ts
fileStatus: FileStatus

Defined in: packages/curseforge/index.ts:242

gameId

ts
gameId: number

The game id related to the mod that this file belongs to

Defined in: packages/curseforge/index.ts:217

gameVersions

ts
gameVersions: string[]

Game version string array, like ["1.12.2"]

Defined in: packages/curseforge/index.ts:267

hashes

ts
hashes: FileHash[]

Defined in: packages/curseforge/index.ts:244

id

ts
id: number

The fileID

Defined in: packages/curseforge/index.ts:213

isAlternate

ts
isAlternate: boolean

Metadata used for sorting by game versions

Defined in: packages/curseforge/index.ts:271

isAvailable

ts
isAvailable: boolean

Whether the file is available to download

Defined in: packages/curseforge/index.ts:225

modId

ts
modId: number

The projectId (addonId)

Defined in: packages/curseforge/index.ts:221

modules

ts
modules: Module[]

What files inside?

Defined in: packages/curseforge/index.ts:277

releaseType

ts
releaseType: number

Release or type.

  • 1 is the release
  • 2 beta
  • 3 alpha

Defined in: packages/curseforge/index.ts:240

sortableGameVersions optional

ts
sortableGameVersions: SortableGameVersion[]

Defined in: packages/curseforge/index.ts:278