Closed anishg-cn closed 2 years ago
@anishg-cn this is actually the current intended behavior, the types in the constructor are wrong. But agree that you should be able to pass numeric durations to Script. I'm feeling pretty ill today, I can cut new versions tomorrow. For now pass durations as strings.
@ysulyma ok thanks
@anishg-cn try with v2.1.5
when calling
new Script(markers)
with the markers having durations as number instead of string, it is throwing error.I think in the following code the
parseTime
function should check if the duration is of type number or string before operating on the duration.The error is following:
@ysulyma please check.