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

TypeScript rewrite #591

Draft
wants to merge 47 commits into
base: master
Choose a base branch
from
Draft

TypeScript rewrite #591

wants to merge 47 commits into from

Conversation

ExplodingCabbage
Copy link
Collaborator

@ExplodingCabbage ExplodingCabbage commented Feb 28, 2025

Obviously this is barely started at the point of opening this PR. Criteria for merging:

  • All src files are rewritten in TypeScript
  • Restrict possible options properties correctly to each function
  • The build step automatically compiles and still works as before
  • Some kind of linting still runs
  • Tests still run and pass
  • Publishing to npm still works (obvs will test on a dummy package name)

I am not necessarily gonna get generated types for publishing to npm working in this PR; that can be a followup. I want to first of all complete and merge the smallest step in the right direction that doesn't make anything worse (which in this case will still be quite big).

@ExplodingCabbage ExplodingCabbage self-assigned this Feb 28, 2025
I'm using it and it's convenient. In some places like diffArrays where we allow arrays of arbitrary type, I don't even know how to NOT use it.
…eslint.io/rules/no-this-alias/ error

I wasn't using them before because I wasn't sure if our build process would turn them into normal functions for compatability with old JS environments; it turns out it does, so we're fine.
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