Skip to content
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

Add mutateIn and lookupIn to Couchbase Bucket definition. #17768

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 14 additions & 0 deletions types/couchbase/index.d.ts
Expand Up @@ -1013,6 +1013,20 @@ interface Bucket {
* @param callback The callback function.
*/
upsert(key: any | Buffer, value: any, options: UpsertOptions, callback: Bucket.OpCallback): void;

/**
* Stores a document to the bucket.
* @param key The target document key.
* @param options The options object.
*/
mutateIn(key: string, options?: object): any;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use of the object keyword requires you to add a // TypeScript Version: 2.3 comment at the top of the file, per the readme


/**
* Look up a partial document in the bucket.
* @param key The target document key.
* @param options The options object.
*/
lookupIn(key: string, options?: object): any;
}

declare namespace Bucket {
Expand Down