count-down-ts
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -15,3 +15,3 @@ class Countdown { | ||
if (c < d) { | ||
throw 'count-down-ts start(c, d, callback?) function c must be greater than d.'; | ||
throw new Error('count-down-ts start(c, d, callback?) function c must be greater than d.'); | ||
} | ||
@@ -18,0 +18,0 @@ this.carry(c, d, callback); |
@@ -17,3 +17,3 @@ 'use strict'; | ||
if (c < d) { | ||
throw 'count-down-ts start(c, d, callback?) function c must be greater than d.'; | ||
throw new Error('count-down-ts start(c, d, callback?) function c must be greater than d.'); | ||
} | ||
@@ -20,0 +20,0 @@ this.carry(c, d, callback); |
{ | ||
"name": "count-down-ts", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Countdown has timer, count, clear features. Test covered 100%.", | ||
@@ -5,0 +5,0 @@ "main": "dist/count-down-ts.js", |
@@ -94,3 +94,3 @@ # count-down-ts | ||
`callback`: Type (height: number|undefined) => void. | ||
`callback`: Type (c: number) => void. | ||
@@ -97,0 +97,0 @@ ## LICENSE |
40748