UNPKG

supreme-community-api

Version:
29 lines (28 loc) 816 B
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 };