aboutsummaryrefslogtreecommitdiff
path: root/static/clock.ts
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-12-10 03:04:34 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-12-10 03:04:34 +0100
commit457ab3301782e4e91334961208c5e4bbde95987d (patch)
tree4055224de0136a25d0ce748c2adf10f2f5986d47 /static/clock.ts
parentFlip static/.gitignore. (diff)
downloadcalp-457ab3301782e4e91334961208c5e4bbde95987d.tar.gz
calp-457ab3301782e4e91334961208c5e4bbde95987d.tar.xz
Add various type specifiers.
Diffstat (limited to 'static/clock.ts')
-rw-r--r--static/clock.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/static/clock.ts b/static/clock.ts
index a2d22e00..b0ddae00 100644
--- a/static/clock.ts
+++ b/static/clock.ts
@@ -2,9 +2,8 @@ export { SmallcalCellHighlight, Timebar }
import { makeElement, date_to_percent } from './lib'
-class Clock {
- update(now: Date) {
- }
+abstract class Clock {
+ abstract update(now: Date): void;
}