Skip to content

feat: removing local typping #366

Closed
jarrodek wants to merge 2 commits intonextapps-de:masterfrom
jarrodek:master
Closed

feat: removing local typping #366
jarrodek wants to merge 2 commits intonextapps-de:masterfrom
jarrodek:master

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.

4 participants