Browse Source

Frontend/utils: Add missing type (#17312)

Šimon Podlipský 6 năm trước cách đây
mục cha
commit
83af1bdff3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 => {
-  const strings = [];
+  const strings: string[] = [];
   const numhours = Math.floor(seconds / 3600);
   const numminutes = Math.floor((seconds % 3600) / 60);
   const numseconds = Math.floor((seconds % 3600) % 60);