Add basic typing to config objects

Also fixed the blips to be clickable
This commit is contained in:
Jarosław Marek
2021-04-29 21:48:44 +12:00
parent 13ba3120c3
commit 725b6f9924
12 changed files with 83 additions and 97 deletions

View File

@@ -1,4 +1,16 @@
import { Ring } from "./config"
export enum HomepageOption {
chart,
columns,
both
}
export enum Ring {
all = 0,
adopt = 1,
trial = 2,
assess = 3,
hold = 4
}
export type ItemAttributes = {
name: string
@@ -8,7 +20,11 @@ export type ItemAttributes = {
featured: boolean
}
export type FlagType = 'new' | 'changed' | 'default'
export enum FlagType {
new = 'new',
changed = 'changed',
default = 'default'
}
export type Item = ItemAttributes & {
featured: boolean