Modrinth API Types - v1.1.0
    Preparing search index...

    Type Alias APIVersionFile

    type APIVersionFile = {
        file_type: VersionFileType | null;
        filename: string;
        hashes: APIVersionFileHashes;
        primary: boolean;
        size: number;
        url: string;
    }
    Index

    Properties

    file_type: VersionFileType | null

    The type of the additional file, used mainly for adding resource packs to datapacks.

    filename: string

    The name of the file.

    A map of hashes of the file.

    The key is the hashing algorithm, and the value is the string version of the hash.

    primary: boolean

    Whether this file is the primary one for its version.

    Only a maximum of one file per version will have this set to true. If there are not any primary files, it can be inferred that the first file is the primary one.

    size: number

    The size of the file in bytes.

    url: string

    A direct link to the file.