diff options
Diffstat (limited to 'viewer/src/@types')
-rw-r--r-- | viewer/src/@types/ItemType.ts | 1 | ||||
-rw-r--r-- | viewer/src/@types/gallery.d.ts | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/viewer/src/@types/ItemType.ts b/viewer/src/@types/ItemType.ts index 9974d4e..5ef38d8 100644 --- a/viewer/src/@types/ItemType.ts +++ b/viewer/src/@types/ItemType.ts | |||
@@ -21,6 +21,7 @@ export enum ItemType { | |||
21 | OTHER = "other", | 21 | OTHER = "other", |
22 | PICTURE = "picture", | 22 | PICTURE = "picture", |
23 | PLAINTEXT = "plaintext", | 23 | PLAINTEXT = "plaintext", |
24 | MARKDOWN = "markdown", | ||
24 | PDF = "pdf", | 25 | PDF = "pdf", |
25 | VIDEO = "video", | 26 | VIDEO = "video", |
26 | AUDIO = "audio", | 27 | AUDIO = "audio", |
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 { | |||
48 | export interface PlainTextItem extends Item { | 48 | export interface PlainTextItem extends Item { |
49 | properties: PlainTextProperties; | 49 | properties: PlainTextProperties; |
50 | } | 50 | } |
51 | export interface MarkdownItem extends Item { | ||
52 | properties: MarkdownProperties; | ||
53 | } | ||
51 | export interface PDFItem extends Item { | 54 | export interface PDFItem extends Item { |
52 | properties: PDFProperties; | 55 | properties: PDFProperties; |
53 | } | 56 | } |
@@ -71,6 +74,7 @@ export interface Item { | |||
71 | | OtherProperties | 74 | | OtherProperties |
72 | | PictureProperties | 75 | | PictureProperties |
73 | | PlainTextProperties | 76 | | PlainTextProperties |
77 | | MarkdownProperties | ||
74 | | PDFProperties | 78 | | PDFProperties |
75 | | VideoProperties | 79 | | VideoProperties |
76 | | AudioProperties | 80 | | AudioProperties |
@@ -93,6 +97,10 @@ export interface PlainTextProperties { | |||
93 | type: ItemType.PLAINTEXT; | 97 | type: ItemType.PLAINTEXT; |
94 | resource: string; | 98 | resource: string; |
95 | } | 99 | } |
100 | export interface MarkdownProperties { | ||
101 | type: ItemType.MARKDOWN; | ||
102 | resource: string; | ||
103 | } | ||
96 | export interface PDFProperties { | 104 | export interface PDFProperties { |
97 | type: ItemType.PDF; | 105 | type: ItemType.PDF; |
98 | resource: string; | 106 | resource: string; |