From 69dc0d20706ed41e5ecdbb77515066d8a7d7703b Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 19 Jun 2020 22:12:03 +0200 Subject: viewer: code update (no functional change) Types { [x: T]: R } updated to Record Methods in template updated to getters (computed in VueJS), which are reactive and cached Code formatting --- viewer/src/@types/scrollposition.d.ts | 2 +- viewer/src/@types/tag.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/scrollposition.d.ts b/viewer/src/@types/scrollposition.d.ts index b2147fa..cd393b3 100644 --- a/viewer/src/@types/scrollposition.d.ts +++ b/viewer/src/@types/scrollposition.d.ts @@ -17,4 +17,4 @@ -- along with this program. If not, see . */ -type ScrollPosition = { [index: string]: number } +type ScrollPosition = Record diff --git a/viewer/src/@types/tag.d.ts b/viewer/src/@types/tag.d.ts index 76f1207..59ae779 100644 --- a/viewer/src/@types/tag.d.ts +++ b/viewer/src/@types/tag.d.ts @@ -31,8 +31,8 @@ declare namespace Tag { operation: string; // Enum Operation display: string; } - type SearchByOperation = { [index: string]: Tag.Search[] }; - type Index = { [index: string]: Node }; + type SearchByOperation = Record; + type Index = Record; interface Category { tag: string; -- cgit v1.2.3