Irrelon / ForerunnerDB

A JavaScript database with mongo-like query language, data-binding support, runs in browsers and hybrid mobile apps as a client-side DB or on the server via Node.js!
http://www.irrelon.com
721 stars 72 forks source link

Typescript is outdated #253

Open RonaldZielaznicki opened 4 years ago

RonaldZielaznicki commented 4 years ago

Good evening, I'm a developer that was considering using ForerunnerDB for a project of mine but hit a snag in that the typescript definitions included with the project are fairly outdated and the package.json lacks the typings property.

If I wasn't still learning Typescript myself, I'd offer to help get them up to speed. So, the next best thing is to let you all know that there is a problem.

ragnarwestad commented 7 months ago

Hi all! I support this request. I am currently working on upgrading a React project with ForerunnerDB v1.4.67, to latest and using TS. I found that the Collection.count() in the ForerunnerDB types.d.ts doesnt have a version with queries. Obviously this method is there since it works in v1.4.67 and also the doc says it is there. I can easily solve this technically by copying the Collection types declaration and add the count(query: any) but it is not an ideal solution. So I support the request to have the TS types file updated

Irrelon commented 7 months ago

Hi folks, thanks for the info and request. I'll see if I can get an update for types into the application.

Irrelon commented 7 months ago

In the mean-time however, if anyone wanted to take a stab at adding the required type via a PR that would be very much appreciated!!