@types/nano
Advanced tools
Comparing version 6.4.1 to 6.4.2
@@ -266,7 +266,13 @@ // Type definitions for nano 6.4 | ||
interface AttachmentData { | ||
name: string; | ||
data: any; | ||
content_type: any; | ||
} | ||
interface Multipart<D> { | ||
// http://docs.couchdb.org/en/latest/api/document/common.html#creating-multiple-attachments | ||
insert(doc: D, attachments: any[], callback?: Callback<DocumentInsertResponse>): Request; | ||
insert(doc: D, attachments: AttachmentData[], callback?: Callback<DocumentInsertResponse>): Request; | ||
// http://docs.couchdb.org/en/latest/api/document/common.html#creating-multiple-attachments | ||
insert(doc: D, attachments: any[], params: any, callback?: Callback<DocumentInsertResponse>): Request; | ||
insert(doc: D, attachments: AttachmentData[], params: any, callback?: Callback<DocumentInsertResponse>): Request; | ||
get(docname: string, callback?: Callback<any>): Request; | ||
@@ -278,3 +284,2 @@ get(docname: string, params: any, callback?: Callback<any>): Request; | ||
insert(docname: string, attname: string, att: null, contenttype: string, params?: any): NodeJS.WritableStream; | ||
insert(docname: string, attname: string, att: any, contenttype: string, callback?: Callback<any>): Request; | ||
insert( | ||
@@ -285,4 +290,11 @@ docname: string, | ||
contenttype: string, | ||
callback?: Callback<DocumentInsertResponse> | ||
): Request; | ||
insert( | ||
docname: string, | ||
attname: string, | ||
att: any, | ||
contenttype: string, | ||
params: any, | ||
callback?: Callback<any> | ||
callback?: Callback<DocumentInsertResponse> | ||
): Request; | ||
@@ -289,0 +301,0 @@ get(docname: string, attname: string): NodeJS.ReadableStream; |
{ | ||
"name": "@types/nano", | ||
"version": "6.4.1", | ||
"version": "6.4.2", | ||
"description": "TypeScript definitions for nano", | ||
@@ -28,4 +28,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "98b3cc87b6890a4253ddf0bea57b3c6da2d42930a9dffc9d907175facd008ce3", | ||
"typesPublisherContentHash": "fc87308df8abb26fd3baabd4af4db8824149d98ed179c474cfe3162e52c8d43c", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 03 Oct 2017 13:52:13 GMT | ||
* Last updated: Tue, 10 Oct 2017 20:09:09 GMT | ||
* Dependencies: events, request, node | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40571
856