esl
esl copied to clipboard
feat(esl-utils): Transition duration utility
In the scope of this PR I added a utility to get a transition length
To be discussed on tomorrow's call.
We should have a utility to resolve a class of problems but not specific ones. (But you are really close to making this code universal btw) Also, the esl-utils can be extended only with unit tests provided for extending, until it's not agreed with a @exadel-inc/esl-core-team.
/** @example parseTime('.5s') // 500 */
function parseTime(timeStr: string): number;
/** @example parseTimeSet('.5s, 1ms') // [500, 1] */
function parseTimeSet(timeStr: string): number[];
```
Code Climate has analyzed commit 6e50bbfb and detected 0 issues on this pull request.
The test coverage on the diff in this pull request is 100.0% (50% is the threshold).
This pull request will bring the total coverage in the repository to 54.7% (0.0% change).
View more on Code Climate.
:tada: This PR is included in version 4.14.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket: