Skip to content

[couchbase] missing implementation for MutableDocument setValue #222

Description

@KG3RK3N

I found a issue with the setValue method on the MutableDocument.
In the packages/nativescript-couchbase/index.d.ts there is the method defined, but the implementation is missing on iOS and android.

It should have the following implementations:

packages/nativescript-couchbase/index.android.ts

	setValue(key: string, value: ValueType): this {
		const native = valueToObject(value);
		if (native !== undefined) {
			this.native.setValue(key, native);
		}
		return this;
	}

packages/nativescript-couchbase/index.ios.ts

	setValue(key: string, value: ValueType): this {
		const native = valueToObject(value);
		if (native !== undefined) {
			this.native.setValueForKey(native, key);
		}
		return this;
	}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions