cleanup schema

This commit is contained in:
wryk
2020-02-22 03:39:15 +01:00
parent c43b455505
commit f60bc914c1
9 changed files with 129 additions and 173 deletions

32
src/types.ts Normal file
View File

@@ -0,0 +1,32 @@
export type Track = {
referer: Referer
media: Media
}
export type Referer = {
username: string
content: string
date: Date
credentials: RefererCredentials
}
export type RefererCredentials = Mastodon
export type Mastodon = {
type: 'mastodon'
domain: string
id: string
}
export type Media = {
title: string
cover: string
credentials: MediaCredentials
}
export type MediaCredentials = Youtube
export type Youtube = {
type: 'youtube'
id: string
}