Browse Source

Frontend/utils: Add missing type (#17312)

Šimon Podlipský 6 years ago
parent
commit
83af1bdff3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/app/core/utils/kbn.ts

+ 1 - 1
public/app/core/utils/kbn.ts

@@ -133,7 +133,7 @@ kbn.secondsToHms = seconds => {
 };
 };
 
 
 kbn.secondsToHhmmss = seconds => {
 kbn.secondsToHhmmss = seconds => {
-  const strings = [];
+  const strings: string[] = [];
   const numhours = Math.floor(seconds / 3600);
   const numhours = Math.floor(seconds / 3600);
   const numminutes = Math.floor((seconds % 3600) / 60);
   const numminutes = Math.floor((seconds % 3600) / 60);
   const numseconds = Math.floor((seconds % 3600) % 60);
   const numseconds = Math.floor((seconds % 3600) % 60);