File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ declare namespace nano {
338
338
get ( docname : string , params ?: DocumentGetParams , callback ?: Callback < DocumentGetResponse & D > ) : Promise < DocumentGetResponse & D > ;
339
339
/** Fetch document meta data, useful for fetching a document's current revision.
340
340
* @see Docs: {@link http://docs.couchdb.org/en/latest/api/document/common.html#head--db-docid} */
341
- head ( docname : string , callback ?: Callback < any > ) : Promise < any > ;
341
+ head ( docname : string , callback ?: Callback < DocumentHeadResponseHeaders > ) : Promise < DocumentHeadResponseHeaders > ;
342
342
/** Delete a document from this database.
343
343
* @see Docs: {@link http://docs.couchdb.org/en/latest/api/document/common.html#delete--db-docid} */
344
344
destroy ( docname : string , rev : string , callback ?: Callback < DocumentDestroyResponse > ) : Promise < DocumentDestroyResponse > ;
@@ -1249,6 +1249,13 @@ declare namespace nano {
1249
1249
_revisions ?: any ;
1250
1250
}
1251
1251
1252
+ /** Document head response headers:
1253
+ * @see docs: {@link https://docs.couchdb.org/en/latest/api/document/common.html#head--db-docid} */
1254
+ interface DocumentHeadResponseHeaders {
1255
+ /** Double quoted document’s revision token. */
1256
+ etag : string ;
1257
+ }
1258
+
1252
1259
/** _all_docs parameters
1253
1260
* @see Docs: {@link http://docs.couchdb.org/en/latest/api/database/bulk-api.html#get--db-_all_docs} */
1254
1261
interface DocumentListParams {
You can’t perform that action at this time.
0 commit comments