Level / memdown

In-memory abstract-leveldown store for Node.js and browsers.
MIT License
287 stars 37 forks source link

feat(typings): add initial typings #75

Closed MeirionHughes closed 7 years ago

MeirionHughes commented 7 years ago

managed to get it typed so the export is both callable, newable and has the static functions. works with levelup (pr)

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling d4961e15d0f8dfd0d618d245e2e4cfa9e0235e0d on MeirionHughes:typings into 5b876b1fcaf34a0da26810d8759ba8753f1b6fa9 on Level:master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling d0a5773f725f6c092bc6a1589271c4e208fe5c74 on MeirionHughes:typings into 5b876b1fcaf34a0da26810d8759ba8753f1b6fa9 on Level:master.

MeirionHughes commented 7 years ago

something's not right with the generics

MeirionHughes commented 7 years ago

Okay, fixed; I had to drop the ability to new up the export though. Typescript seems utterly opposed to newable + generic + as function + static functions