Skip to content

Commit 507931a

Browse files
Hive. Kee Value. Instanse Set signatures (#231)
1 parent bdaaca4 commit 507931a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

backendless.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ declare module Backendless {
390390
interface keyValueStore extends hiveStore {
391391
get(): Promise<JSONValue | null>;
392392

393-
set(value: string, options?: KeyValueSetKeyOptionsI): Promise<void>;
393+
set(value: JSONValue, options?: KeyValueSetKeyOptionsI): Promise<boolean>;
394394

395395
increment(value: number): Promise<number>;
396396

test/tsd.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,8 +789,13 @@ function testHiveStores() {
789789
function testInstance() {
790790
promiseJSONValueOrNull = Backendless.Hive(str).KeyValueStore(str).get();
791791

792-
promiseVoid = Backendless.Hive(str).KeyValueStore(str).set(str);
793-
promiseVoid = Backendless.Hive(str).KeyValueStore(str).set(str, setKeyOptions);
792+
promiseBoolean = Backendless.Hive(str).KeyValueStore(str).set(str);
793+
promiseBoolean = Backendless.Hive(str).KeyValueStore(str).set(num);
794+
promiseBoolean = Backendless.Hive(str).KeyValueStore(str).set(bool);
795+
promiseBoolean = Backendless.Hive(str).KeyValueStore(str).set(obj);
796+
promiseBoolean = Backendless.Hive(str).KeyValueStore(str).set(strArr);
797+
798+
promiseBoolean = Backendless.Hive(str).KeyValueStore(str).set(str, setKeyOptions);
794799

795800
promiseNumber = Backendless.Hive(str).KeyValueStore(str).increment(num);
796801
promiseNumber = Backendless.Hive(str).KeyValueStore(str).decrement(num);

0 commit comments

Comments
 (0)