Closed ndrewtl closed 3 years ago
Oh shoot, sorry. This was intended to be merged into the skiff-org
repository, not this one. I might make a similar PR including these types in the future for this repo. But for now I'm just doing it in my own. Closing.
The types as written in
index.d.ts
appear to have been wrong-- the declared typeIndex
did not coincide with the actual classFlexSearch.Index
. Therefore this PR lays down the types correctly, at least for that one class. The types representingWorkerIndex
andDocument
have not been written, it seems, and so those should be handled separately in the future. Because the three types have much in common, we might consider making a common interface that is then implemented by all three.