Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make measure and scrollTo generic #3778

Merged
merged 8 commits into from
May 9, 2023

Conversation

j-piasecki
Copy link
Member

@j-piasecki j-piasecki commented Nov 16, 2022

Description

This PR is part of an ongoing effort to get rid of the .d.ts file and use type definitions generated based on the source code.

Changes

  • Changed measure to be a generic function
  • Changed scrollTo to be a generic function

Checklist

  • Included code example that can be used to test this change
  • Updated TS types
  • Added TS types tests
  • Added unit / integration tests
  • Updated documentation
  • Ensured that CI passes

@j-piasecki j-piasecki changed the base branch from main to @kwasow/bobFix November 16, 2022 08:47
@tjzel tjzel force-pushed the @jpiasecki/types/nativemethods branch from d133ead to 3aa3d16 Compare April 27, 2023 10:11
@tjzel tjzel force-pushed the @jpiasecki/types/nativemethods branch from 3aa3d16 to 144b8d6 Compare April 27, 2023 10:13
tjzel and others added 2 commits May 4, 2023 11:35
## Summary

_This PR is part of an ongoing effort to get rid of the .d.ts file and
use type definitions generated based on the source code._

It's a direct follow-up to #3778.

- Added type tests for `NativeMethods`.
I still need some guidance with them - what exactly do we want to test
there and how.
- Added extra type `AnimatedRef<T>` which is an alias to
`RefObjectFunction<T>`.
Reason for that was in many parts of code we explicitly ask for an
`animatedRef` as an argument and it seems just more logical to have an
alias for it.

## Test plan

🚀
@tjzel tjzel merged commit f829a9f into @kwasow/bobFix May 9, 2023
5 of 6 checks passed
@tjzel tjzel deleted the @jpiasecki/types/nativemethods branch May 9, 2023 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants