-
-
Notifications
You must be signed in to change notification settings - Fork 267
Typescript Errors #500
Comments
We are actively working on improving the typings, they will be included in |
leveldown, memdown, encoding-leveldown come with their own types that are different and breaking to the defiantly typed ones. we're in the process of updating the typings for levelup too. |
@gpresland I believe this issue will be solved after the levelup v2.0 package is published on NPM with the latest typings. Before that, I suggest you try You can have a look at this TypeScript repository which has a workable levelup at: |
Any updates on this issue? I believe the v2.0.0 is released on npm, and leveldown has their typings bundled but levelup has no d.ts files. The type declerations under definitelytyped are 6-7 months old so I don't know where I'm supposed to get the latest ones... |
I have a workaround as the following combination: "encoding-down": "^2.3.1",
"leveldown": "^2.0.0",
"levelup": "github:MeirionHughes/levelup", Then the typing system works. |
This hasn't made it into 2.0.1, has it? |
Correct. You can follow #499 for progress. |
@zixia What types are using that works with the github version of levelup? I am trying: And still seeing errors |
@peternoyes Please have a look at https://github.com/zixia/flash-store to get it work. I use |
Please see Level/community#16. |
Attempting to use
levelup
withleveldown
results in a screen full of type errors.Installed with:
and
When run with
node_modules/.bin/tsc
you get:The text was updated successfully, but these errors were encountered: