UNPKG

tbarequest

Version:

A wrapper to fetch data from The Blue Alliance API

17 lines (16 loc) 422 B
import { API_Status_App_Version } from "../schemas/status.js"; import { type } from "arktype"; const status = type({ current_season: "number", max_season: "number", is_datafeed_down: "boolean", down_events: "string[]", ios: API_Status_App_Version, android: API_Status_App_Version, }); export const statusEndpoints = { "/status": { schema: status, arguments: type([]), }, };