Skip to content

Use a typescript class to improve the typing #153

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scytacki
Copy link

@scytacki scytacki commented Apr 30, 2025

Without this change this was typed as any so typescript couldn't check the code very well.
With this change several edge cases were identified and addressed.

I haven't tested this specific code. I did this refactoring in my own codebase first and it worked fine for how we are using it. I did this refactoring so I could more safely strip down the layer to just what we need in our use case. I probably won't be able to spend more time on the code of this PR, but I wanted to contribute it in case you find it useful.

Without this change `this` was typed as any so typescript couldn't
check the code very well. With this change several edge cases were
identified and addressed.
@scytacki scytacki marked this pull request as ready for review April 30, 2025 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant