esl icon indicating copy to clipboard operation
esl copied to clipboard

feat(esl-utils): Transition duration utility

Open fshovchko opened this issue 3 years ago • 1 comments

In the scope of this PR I added a utility to get a transition length

fshovchko avatar Feb 07 '22 20:02 fshovchko

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[];
```

ala-n avatar Feb 08 '22 13:02 ala-n

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.

codeclimate[bot] avatar Nov 22 '23 11:11 codeclimate[bot]

:tada: This PR is included in version 4.14.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

ala-n avatar Nov 24 '23 15:11 ala-n