bytesized.tv.web.constants
Version:
Common constants used in ByteSized.TV
41 lines (37 loc) • 1.08 kB
JavaScript
/* __.-._
* '-._"7' JediFocus
* /'.-c
* | /T Do. Or do not.
* _)_/LI There is no try.
*
* This project is a part of the “Byte-Sized JavaScript” videocasts.
* You can watch “Byte-Sized JavaScript” at: https://bytesized.tv/
*
* MIT Licensed — See LICENSE.md
*
* Send your comments, suggestions, and feedback to me@volkan.io
*/
declare module 'bytesized.tv.app.types' {
declare type Video = {
kind: string,
id: string,
etag: string,
snippet: {
publishedAt: string,
channelId: string,
title: string,
description: string,
thumbnails: {
default: { url: string, width: string, height: string },
standard: { url: string, width: string, height: string },
maxres: { url: string, width: string, height: string }
},
tags: [string],
categoryId: string,
liveBroadcastContent: string,
localized: { title: string, description: string }
}
};
declare type Tags = { [string]: Video };
declare type State = { videos: [Video], tags: Tags };
}