From 76af6cffce939ef3c9a0952e6f7adc234e92f782 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Thu, 30 Jan 2020 17:04:09 +0100 Subject: viewer: directories first and sorted by title in the navigation mode --- viewer/src/@types/gallery/index.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'viewer/src/@types/gallery') diff --git a/viewer/src/@types/gallery/index.d.ts b/viewer/src/@types/gallery/index.d.ts index 25407e8..b112b6d 100644 --- a/viewer/src/@types/gallery/index.d.ts +++ b/viewer/src/@types/gallery/index.d.ts @@ -18,6 +18,9 @@ */ declare namespace Gallery { + interface Other extends Item { + properties: OtherProperties, + } interface Picture extends Item { properties: PictureProperties, } @@ -31,7 +34,10 @@ declare namespace Gallery { tags: RawTag[], path: string, thumbnail?: string, - properties: PictureProperties | DirectoryProperties, + properties: OtherProperties | PictureProperties | DirectoryProperties, + } + interface OtherProperties { + type: "other", } interface PictureProperties { type: "picture", @@ -42,4 +48,5 @@ declare namespace Gallery { items: Item[] } type RawTag = string; + type ItemType = "other" | "picture" | "directory"; } \ No newline at end of file -- cgit v1.2.3