-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bulkDocs docs
parameter shape?
#4
Comments
|
[14:03:36] anyone - what is the |
@marten-de-vries, that is helpful, thanks (relevant IRC added above). I started working through the In 3110b77 I started to add in the overloads to go with option (3), and that has now evolved into 3732dce. That lets me do things like the I'm still on the fence about doing option (3) as I now have a large number of overloads and I'm not sure the overload intellisense is working correctly as a result. However at least, first and foremost, it is possible to write all the required † (although that test has been temporarily removed again as I haven't done the correct |
In the api documentation it states (emphasis added):
and shows the code:
In
test.basics.js
for the'Bulk docs'
test it shows:The difference is that in the api documentation the
docs
parameter is an array, but in the test it is an object, with adocs
property that is an array.Question
Which form should we add into the d.ts file?
db.bulkDocs(docs: DocType[], options?: {}, ...
db.bulkDocs(docs: { docs: DocType[] }, options?: {}, ...
The text was updated successfully, but these errors were encountered: