aboutsummaryrefslogtreecommitdiff
path: root/src/lib/utils.ts
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2022-05-19 02:34:18 +0000
committerGitHub <noreply@github.com>2022-05-19 02:34:18 +0000
commit9b714fe39c83794538e0b38a63afd2bf39664c2f (patch)
treee0b638cad2b38c17f84fe5270f360a21756f6728 /src/lib/utils.ts
parent41dc70e3af49fc11383d0dff3bbe8f006272bed9 (diff)
parent97688e22c8335642b72d200ce0a865353bef5207 (diff)
downloadskyblock-stats-9b714fe39c83794538e0b38a63afd2bf39664c2f.tar.gz
skyblock-stats-9b714fe39c83794538e0b38a63afd2bf39664c2f.tar.bz2
skyblock-stats-9b714fe39c83794538e0b38a63afd2bf39664c2f.zip
Merge pull request #3 from skyblockstats/auctions
Auction Prices
Diffstat (limited to 'src/lib/utils.ts')
-rw-r--r--src/lib/utils.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/utils.ts b/src/lib/utils.ts
index e34d573..c094db4 100644
--- a/src/lib/utils.ts
+++ b/src/lib/utils.ts
@@ -1,3 +1,5 @@
+import type { SimpleAuctionSchema } from "./APITypes"
+
export const colorCodes: { [key: string]: string } = {
'0': '#000000', // black
'1': '#0000be', // blue
@@ -219,4 +221,10 @@ export function skyblockTime(year: number, month = 1, day = 1) {
if (month) time += 37200000 * (month - 1)
if (day) time += 1200000 * (day - 1)
return time
-} \ No newline at end of file
+}
+
+export interface PreviewedAuctionData {
+ pageX: number
+ pageY: number
+ auction: SimpleAuctionSchema
+}