schmelczer-dev/src/model/content.ts
2019-12-21 22:59:41 +01:00

16 lines
241 B
TypeScript

import { url } from "./misc";
interface Anchor {
type: "a";
href: url;
text: string;
}
interface Video {
type: "video";
src: url;
}
export type TypedContent = Anchor | Video;
export type Content = Array<String | TypedContent>;