Skip to content

Commit c3d16f7

Browse files
author
brizental
committed
Address my own review comments
1 parent ffe3940 commit c3d16f7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/metrics/datetime.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class DatetimeMetric extends Metric<DatetimeInternalRepresentation, strin
6060
}
6161

6262
private get timeUnit(): TimeUnit {
63-
return this._inner.timeUnit as TimeUnit;
63+
return this._inner.timeUnit;
6464
}
6565

6666
validate(v: unknown): v is DatetimeInternalRepresentation {
@@ -125,9 +125,10 @@ export class DatetimeMetric extends Metric<DatetimeInternalRepresentation, strin
125125
}
126126

127127
/**
128-
* A boolean metric.
128+
* A datetime metric.
129129
*
130-
* Records a simple flag.
130+
* Used to record an absolute date and time, such as the time the user first ran
131+
* the application.
131132
*/
132133
class DatetimeMetricType extends MetricType {
133134
private timeUnit: TimeUnit;

0 commit comments

Comments
 (0)