From 2bd63dc7622c0f84383fb76f7e2c4380d3f78495 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 3 Jul 2021 23:07:09 +0200 Subject: viewer: register markdown item type Extracted from b170f49 (GH PR #304) --- viewer/src/@types/gallery.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'viewer/src/@types/gallery.d.ts') diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index 9011f19..0b4cfc4 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts @@ -48,6 +48,9 @@ export interface PictureItem extends Item { export interface PlainTextItem extends Item { properties: PlainTextProperties; } +export interface MarkdownItem extends Item { + properties: MarkdownProperties; +} export interface PDFItem extends Item { properties: PDFProperties; } @@ -71,6 +74,7 @@ export interface Item { | OtherProperties | PictureProperties | PlainTextProperties + | MarkdownProperties | PDFProperties | VideoProperties | AudioProperties @@ -93,6 +97,10 @@ export interface PlainTextProperties { type: ItemType.PLAINTEXT; resource: string; } +export interface MarkdownProperties { + type: ItemType.MARKDOWN; + resource: string; +} export interface PDFProperties { type: ItemType.PDF; resource: string; -- cgit v1.2.3