From e9e46a3b3392ab435f7414729592b2b5af4071b6 Mon Sep 17 00:00:00 2001 From: pacien Date: Mon, 18 May 2020 20:05:14 +0200 Subject: compiler: add pdf resource type --- viewer/src/@types/gallery.d.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'viewer/src') diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index 04df1bb..7345ef9 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts @@ -40,6 +40,9 @@ declare namespace Gallery { interface PlainText extends Item { properties: PlainTextProperties, } + interface PDF extends Item { + properties: PDFProperties, + } interface Directory extends Item { properties: DirectoryProperties, } @@ -50,7 +53,7 @@ declare namespace Gallery { tags: RawTag[], path: string, thumbnail?: Thumbnail - properties: OtherProperties | PictureProperties | PlainTextProperties | DirectoryProperties, + properties: OtherProperties | PictureProperties | PlainTextProperties | PDFProperties | DirectoryProperties, } interface Resolution { width: number, @@ -69,6 +72,10 @@ declare namespace Gallery { type: "plaintext", resource: string, } + interface PDFProperties { + type: "pdf", + resource: string, + } interface DirectoryProperties { type: "directory", items: Item[] @@ -78,5 +85,5 @@ declare namespace Gallery { resolution: Resolution } type RawTag = string; - type ItemType = "other" | "picture" | "plaintext" | "directory"; + type ItemType = "other" | "picture" | "plaintext" | "pdf" | "directory"; } -- cgit v1.2.3