Level / level

Universal abstract-level database for Node.js and browsers.
MIT License
1.55k stars 106 forks source link

Types do not export `destroy` property #224

Closed MicaiahReid closed 2 years ago

MicaiahReid commented 2 years ago

The level types do not export a Level.destroy property, even though the property does exist on Level. This leads to type errors when using Level.destroy.

vweevers commented 2 years ago

From the README:

TypeScript type declarations are included and cover the methods that are common between classic-level and browser-level.

Although both classic-level and browser-level happen to have a destroy() method, it's not part of the abstract-level interface and their function signatures differ.