1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

fixed types

This commit is contained in:
muerwre 2019-08-09 14:31:09 +07:00
parent 5d219b3196
commit d9a56255c5
4 changed files with 30 additions and 13 deletions

View file

@ -73,8 +73,9 @@ export interface IFileWithUUID {
export interface IBlock {
type: 'image' | 'text' | 'media' | 'youtube' | 'video';
temp_ids: UUID[];
attaches: UUID[];
files: UUID[];
content: string;
embeds: string[];
}
export interface INode {
@ -84,7 +85,7 @@ export interface INode {
title: string;
files: IFile[];
cover: IFile['id'];
cover: IFile;
type: 'image';
blocks: IBlock[];