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

Export more correct types #40

Closed
wants to merge 1 commit into from
Closed

Export more correct types #40

wants to merge 1 commit into from

Conversation

chriskrycho
Copy link
Collaborator

The previous iteration, because it did not test the exported types in any way, had two misses, one serious and one less so:

  • the less serious miss was that the object types were incorrectly set up for the tests, and could be simplified as well
  • the more serious miss was that the exported type for TrackedArray was missing all of the Array methods, so downstream consumers could not use it as an array!

@chriskrycho
Copy link
Collaborator Author

NOTE: there's a problem with the updated ESLint config for this, and I haven't yet had a chance to get to the bottom of it. Will try to do so within the next few days.

The previous iteration, because it did not test the exported types in any way,
had two misses, one serious and one less so:

- the less serious miss was that the object types were incorrectly set up for
  the tests, and could be simplified as well
- the more serious miss was that the exported type for `TrackedArray` was
  missing all of the `Array` methods, so downstream consumers could not use it
  as an array!
@chriskrycho
Copy link
Collaborator Author

This should be unblocked by all the dependency work I'm doing across the repo, but I'm going to go ahead and get the dependency situation fully up to date before landing this.

@chriskrycho chriskrycho added the enhancement New feature or request label Apr 22, 2021
@chriskrycho
Copy link
Collaborator Author

Superseded by #56 (which is just this, but rebased and updated).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants