Interface Route

A singular route to the API

interface Route {
    apiVersion: APIVersion;
    cacheTime: number;
    url: `https://api.wynncraft.com/${string}`;
    version: null | number | `${number}.${number}.${number}`;
}

Properties

apiVersion: APIVersion

The version of the API this route belongs to,

cacheTime: number

The amount of milliseconds to cache data from this route for

url: `https://api.wynncraft.com/${string}`

The URL of the route

version: null | number | `${number}.${number}.${number}`

The API version of this route the wrapper was build for, v3 routes do not have a version

Generated using TypeDoc