diff options
author | pacien | 2022-04-12 22:29:29 +0200 |
---|---|---|
committer | GitHub | 2022-04-12 22:29:29 +0200 |
commit | 87f2f631aec9ffbb794b5475a16353e873dbb2b7 (patch) | |
tree | 7bd0c65e680202b8c48ed9d875b9d0c45223b9e2 /viewer/src/@types/gallery.d.ts | |
parent | a6b4a520f16092f38d8d97d5d746aa6777b8ced5 (diff) | |
parent | 581029f1b15b51f90812a47b20bce454014da32a (diff) | |
download | ldgallery-87f2f631aec9ffbb794b5475a16353e873dbb2b7.tar.gz |
Merge pull request #307 from ldgallery/pacien-20210704-markdown-item-handler
viewer: markdown item handler
Diffstat (limited to 'viewer/src/@types/gallery.d.ts')
-rw-r--r-- | viewer/src/@types/gallery.d.ts | 8 |
1 files changed, 8 insertions, 0 deletions
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; |