diff --git a/src/interfaces/utils.tsx b/src/interfaces/utils.tsx new file mode 100644 index 0000000..28ce69e --- /dev/null +++ b/src/interfaces/utils.tsx @@ -0,0 +1,8 @@ +/** + * A Generic dictionary with the value of a specific type. + * + * Keys _must_ be strings. + */ +export interface Dictionary { + [Key: string]: T; +} diff --git a/src/types/Account.tsx b/src/types/Account.tsx index a6454a9..5fb1504 100644 --- a/src/types/Account.tsx +++ b/src/types/Account.tsx @@ -14,6 +14,7 @@ export type Account = { followers_count: number; following_count: number; statuses_count: number; + last_status_at: string; note: string; url: string; avatar: string; diff --git a/src/types/History.tsx b/src/types/History.tsx new file mode 100644 index 0000000..22176bd --- /dev/null +++ b/src/types/History.tsx @@ -0,0 +1,5 @@ +export type History = { + day: string; + uses: number; + accounts: number; +}; diff --git a/src/types/Tag.tsx b/src/types/Tag.tsx index f12ccf2..d03b269 100644 --- a/src/types/Tag.tsx +++ b/src/types/Tag.tsx @@ -1,4 +1,7 @@ +import { History } from "./History"; + export type Tag = { name: string; url: string; + history?: [History]; };