UNPKG

splatoon3api

Version:

A simple Method to get current and next Splatoon 3 maps, Salmonrun Schedules and Splatnet gear

36 lines (35 loc) 1.21 kB
import * as Types from './types'; /** * Get rule image from rule ID * @param {Types.RuleID} ruleId * @returns {string} */ export declare function getImageFromRuleId(ruleId: Types.RuleID): string; /** * Convert RGBA to Hex color * @param {string} rgba - The RGBA value to convert * @param {boolean} [forceRemoveAlpha=false] - Should the alpha value be removed? * @returns {string} - The color code in HEX format * * @description * Borrowed from https://stackoverflow.com/a/73401564 */ export declare function RGBAtoHEX(rgba: string, forceRemoveAlpha?: boolean): string; /** * Format the lang input * @param {string} lang - The lang string to format * @returns {Lang} - The formatted language string */ export declare function formatLang(lang: Types.Lang): Types.Lang; /** * Check if the value is a valid fest region * @param {any} value - The value to check * @returns {value is FestRegion} - If the value is a valid fest region */ export declare function isFestRegion(value: any): value is Types.FestRegion; /** * Fetch data from the URL * @param {string} url * @param {Types.Options} options */ export declare function fetchData(url: string, options: Types.Options): Promise<any>;