Skip to content

Commit ff86c94

Browse files
authored
Add docName to TypeScript type definition (#281)
This parameter noted in [the docs](https://github.com/apache/couchdb-nano/tree/2d4bd719e4f08915ed9c0ef7953e901391ce4239#dbinsertdoc-params-callback).
1 parent cd650be commit ff86c94

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/nano.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,9 @@ declare namespace nano {
11091109
* @see POST docs: {@link http://docs.couchdb.org/en/latest/api/database/common.html#post--db}
11101110
* @see PUT docs: {@link http://docs.couchdb.org/en/latest/api/document/common.html#put--db-docid} */
11111111
interface DocumentInsertParams {
1112+
/** Document ID */
1113+
docName?: string;
1114+
11121115
/** Document’s revision if updating an existing document. Alternative to If-Match header or document key. */
11131116
rev?: string;
11141117

0 commit comments

Comments
 (0)