From 69a00a1050e10afb0d8aac109f17c77374d947e8 Mon Sep 17 00:00:00 2001 From: Vinicius Fortuna Date: Wed, 17 Jun 2020 15:01:41 -0400 Subject: [PATCH] Specify direction type --- .../web_app/ui_components/outline-server-view.js | 5 ++++- .../web_app/ui_components/outline-sort-span.js | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/server_manager/web_app/ui_components/outline-server-view.js b/src/server_manager/web_app/ui_components/outline-server-view.js index e0946264..703163a9 100644 --- a/src/server_manager/web_app/ui_components/outline-server-view.js +++ b/src/server_manager/web_app/ui_components/outline-server-view.js @@ -679,7 +679,10 @@ export class ServerView extends DirMixin(PolymerElement) { this.monthlyCost = 0; this.selectedTab = 'connections'; this.accessKeySortBy = 'name'; - /** The direction to sort: 1 == ascending, 0 == no sorting, -1 == descending */ + /** + * The direction to sort: 1 == ascending, 0 == no sorting, -1 == descending + * @type {-1|0|1} + */ this.accessKeySortDirection = 0; /** @type {(msgId: string, ...params: string[]) => string} */ this.localize = null; diff --git a/src/server_manager/web_app/ui_components/outline-sort-span.js b/src/server_manager/web_app/ui_components/outline-sort-span.js index e1da411d..1e152647 100644 --- a/src/server_manager/web_app/ui_components/outline-sort-span.js +++ b/src/server_manager/web_app/ui_components/outline-sort-span.js @@ -33,6 +33,7 @@ export class SortSpan extends LitElement { constructor() { super(); + /** @type {-1|0|1} */ this.direction = 0; }