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

Refactor into classes #217

Merged
merged 17 commits into from
Apr 1, 2024
Merged

Refactor into classes #217

merged 17 commits into from
Apr 1, 2024

Conversation

AGalabov
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@georgyangelov georgyangelov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good! Nice one. Left one actual comment and one question

src/transformers/index.ts Outdated Show resolved Hide resolved
getNumberChecks: GetNumberChecks
) {
return {
...mapNullableType('integer'),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this probably has been discussed and has tests, but is it correct that a BigInt should have an integer representation? BigInt is arbitrary-size, so 9238745923847592837459823745982734958273498572398457298347598237459872349857239847592837459827349587239845723984759823745987239458723984572983745982734958723498572398457 is a valid value, and it can't be represented as an integer type (even 64-bit) - should be a string IMO.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm you are correct. I don't remember discussing this, but it does have tests 😄. I think I am with you on this one and I would rather implement it. However I think I'd do this in a separate PR - just for future reference and ease of searching. I still think I'd release everything in a single release.

@AGalabov AGalabov changed the title [Draft] Refactor into classes Refactor into classes Apr 1, 2024
@AGalabov AGalabov merged commit 2fff075 into master Apr 1, 2024
3 checks passed
@AGalabov AGalabov deleted the refactor-into-classes branch April 1, 2024 12:50
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.

None yet

2 participants