aboutsummaryrefslogtreecommitdiff
path: root/src/lib/utils.ts
diff options
context:
space:
mode:
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
+}