Add missing files

This commit is contained in:
Marquis Kurt 2020-04-10 18:40:48 -04:00
parent 6498494e85
commit 05f22ce54f
No known key found for this signature in database
GPG Key ID: 725636D259F5402D
4 changed files with 17 additions and 0 deletions

8
src/interfaces/utils.tsx Normal file
View File

@ -0,0 +1,8 @@
/**
* A Generic dictionary with the value of a specific type.
*
* Keys _must_ be strings.
*/
export interface Dictionary<T> {
[Key: string]: T;
}

View File

@ -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;

5
src/types/History.tsx Normal file
View File

@ -0,0 +1,5 @@
export type History = {
day: string;
uses: number;
accounts: number;
};

View File

@ -1,4 +1,7 @@
import { History } from "./History";
export type Tag = {
name: string;
url: string;
history?: [History];
};