Skip to content

Commit 87cdbc4

Browse files
committed
wip: implemented web app
1 parent 248faa4 commit 87cdbc4

File tree

5 files changed

+1683
-1
lines changed

5 files changed

+1683
-1
lines changed

dashgov.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@
3737
* @prop {Uint53} ms - the time of that block in ms
3838
*/
3939

40+
/**
41+
* @typedef Selection
42+
* @prop {Estimate} start
43+
* @prop {Estimate} end
44+
*/
45+
4046
/**
4147
* @typedef Estimate
4248
* @prop {String} startIso
@@ -337,7 +343,7 @@ DashGov.selectEstimates = function (estimates, startPeriod, endPeriod) {
337343
}
338344
if (!startEstimate) {
339345
throw new Error(
340-
`${startPeriod} is not valid ('startPeriod' might not be a number)`,
346+
`${startPeriod} is not valid ('startPeriod' may be out of bounds or not a number)`,
341347
);
342348
}
343349

0 commit comments

Comments
 (0)