ForerunnerDB icon indicating copy to clipboard operation
ForerunnerDB copied to clipboard

Typescript is outdated

Open ronald-mz opened this issue 5 years ago • 3 comments

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.

ronald-mz avatar Aug 18 '20 02:08 ronald-mz

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

ragnarwestad avatar Mar 15 '24 07:03 ragnarwestad

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

Irrelon avatar Mar 15 '24 13:03 Irrelon

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!!

Irrelon avatar Mar 15 '24 13:03 Irrelon