aboutsummaryrefslogtreecommitdiff
path: root/src/util/time.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-04-06 23:32:01 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-04-06 23:32:01 +0530
commit47787c0b0b846d5f4a057661efdd05d8786032f1 (patch)
tree3a3d58a5ebad8af584de6a6cd882c2019f71dffa /src/util/time.ts
parentf36bb7a04eabe0330cb166bf9ce5021c92f38dc8 (diff)
downloadwallet-core-47787c0b0b846d5f4a057661efdd05d8786032f1.tar.xz
make linter less grumpy
Diffstat (limited to 'src/util/time.ts')
-rw-r--r--src/util/time.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/time.ts b/src/util/time.ts
index 05188b6d2..ea4f8ca8d 100644
--- a/src/util/time.ts
+++ b/src/util/time.ts
@@ -36,7 +36,7 @@ export interface Duration {
let timeshift = 0;
-export function setDangerousTimetravel(dt: number) {
+export function setDangerousTimetravel(dt: number): void {
timeshift = dt;
}
@@ -121,7 +121,7 @@ export function timestampSubtractDuraction(
return { t_ms: Math.max(0, t1.t_ms - d.d_ms) };
}
-export function stringifyTimestamp(t: Timestamp) {
+export function stringifyTimestamp(t: Timestamp): string {
if (t.t_ms === "never") {
return "never";
}
@@ -142,7 +142,7 @@ export function timestampIsBetween(
t: Timestamp,
start: Timestamp,
end: Timestamp,
-) {
+): boolean {
if (timestampCmp(t, start) < 0) {
return false;
}