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

chore: remove manual type definitions for DataType #951

Merged
merged 2 commits into from
Dec 24, 2024

Conversation

EvanHahn
Copy link
Contributor

@EvanHahn EvanHahn commented Oct 30, 2024

This change should have no user impact.

Before this change, DataType had its own type definitions in src/datatype/index.d.ts. This removes that file.

I tested this by manually including it in CoMapeo Mobile and it type-checked fine.

}

/**
* @param {MapeoDoc} doc
* @param {any} doc
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was unable to figure out how to get this to type-check without any, much to my dismay.

*This change should have no user impact.*

Before this change, DataType had its own type definitions in
`src/datatype/index.d.ts`. This removes that file.

I tested this by manually including it in CoMapeo Mobile and it type-
checked fine.

I think this is a useful cleanup on its own, but I believe it will make
a future improvement easier.
@EvanHahn EvanHahn force-pushed the datatype-type-simplification branch from 7ef13c1 to 766f45f Compare December 12, 2024 17:02
@gmaclennan gmaclennan enabled auto-merge (squash) December 24, 2024 10:10
@gmaclennan gmaclennan merged commit 7639b8d into main Dec 24, 2024
8 of 9 checks passed
@gmaclennan gmaclennan deleted the datatype-type-simplification branch December 24, 2024 10:15
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.

2 participants