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

feat: removing local typping #366

Closed
wants to merge 2 commits into from
Closed

feat: removing local typping #366

wants to merge 2 commits into from

Conversation

jarrodek
Copy link

Per discussion: #266 (comment), I removed the local typings in favor of @types/flexsearch.

Motivation

The index.d.ts file has an outdated or incorrect types definition. This makes it useless in actual TS projects. Because there is a better types definition in the @types/flexsearch this PR removes local types from the package.

Hopefully, this can be merged very quickly. Current typings are really bad and TS project authors have to do some additional setup to make the library work in a TS projects.

Signed-off-by: Pawel Psztyc <jarrodek@gmail.com>
Signed-off-by: Pawel Psztyc <jarrodek@gmail.com>
@jmendiara
Copy link

FYI: #364 is adding the @types/flexsearch types inside the project

@benmccann
Copy link
Contributor

benmccann commented Jan 25, 2023

I think #364 combined with #343 is a better approach

@lightningspirit
Copy link

While this library could a lot of improvements, IMHO, in this case "perfection is the enemy" just because the typings that this version is emitting are not correct, which makes this unusable for TypeScript developers. Please, consider merging this PR.

@jarrodek jarrodek closed this by deleting the head repository Aug 23, 2023
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

4 participants