Missing replicate and sync function
Opened this issue ยท 8 comments
Hi,
I can't find replicate and sync functions in the definition.
Thanks
Math
PS: good job ๐
I vote for add this definition to DefinitelyTyped
Hello @mfilotto. Thank you for the issue report (have you seen DefinitelyTyped/DefinitelyTyped#4328)?
I didn't get as far as these two methods in the initial sprint, unfortunately. I will take a look at it in the next month or so, but if you fancy submitting a PR โ before then I'll always review/merge it.
โ The dev approach for pouchdb.d.ts is outlined here. So for these functions we would need to identify all the pouchdb tests that refer to sync
and replicate
, and then iterate writing those tests in ts, and updating the d.ts to allow that to happen, until we mimic the all the relevant pouchdb tests.
wip...
Do your pouchdb definition be pushed in DefinitelyTyped soon ?
I hope so
I added replicate.to to my fork.
Going to work on sync method aswell.