-
-
Notifications
You must be signed in to change notification settings - Fork 983
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description This PR is a successor of #2867 - it solves problems that were present in mentioned PR, namely: 1. changes type of offset properties of `Pan` into `number | [number, number]`, so that it is impossible to assign to them something else than number or array with 2 numbers 2. adds type cast in `withPrevAndCurrent` function (used in `jest`) ## Test plan Try to assign something else than number or array of two numbers to any of changed properties - error should appear.
- Loading branch information
Showing
3 changed files
with
24 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters