supreme-community-api
Version:
Requests latest droplist from SupremeCommunity
29 lines (28 loc) • 816 B
TypeScript
interface Item {
id: number;
name: string;
price: string;
image: string;
description: string;
category: string;
}
/**
* Get the latest week of the current season
*
* @returns {string} The url of the most recent season
*/
declare const getLatestWeek: (weekNumber?: number) => Promise<string>;
/**
* Get all of the latest items from the latest week
*
* @param {string} latestWeek
* @returns {array} Array of all the items in the latest week
*/
declare const getItems: (latestWeek: string) => Promise<Item[]>;
/**
* Get the latest week, then get the latest items, store them in an array and return the value
*
* @returns {array} Array of all the items in the latest week
*/
declare const scrape: (weekNumber?: number) => Promise<Item[]>;
export { getLatestWeek, getItems, scrape };