Skip to content

Commit 792f1cd

Browse files
committed
fix typing
1 parent 836e03c commit 792f1cd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "raam.client.js",
3-
"version": "0.7.5",
3+
"version": "0.8.0",
44
"description": "A messaging protocol for the IOTA tangle allowing access of arbitrary messages in O(1)",
55
"keywords": [
66
"iota",

types/raam.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {API} from '@iota/core';
2-
import {Trytes, Transfer, Hash} from '@iota/core/typings/types';
2+
import {Trytes, Transfer, Hash, Transaction} from '@iota/core/typings/types';
33
import {RAAMReader, Security} from './raamReader';
44

55
/**
@@ -137,7 +137,7 @@ export class RAAM extends RAAMReader {
137137
* - if message is too long
138138
*/
139139
public publishMessageTransfers(transfers: Transfer[], {message, depth, mwm, iota}?:
140-
{message?: Message, depth?: number, mwm?: number, iota?: API}): Promise<Hash>;
140+
{message?: Message, depth?: number, mwm?: number, iota?: API}): Promise<Transaction[]>;
141141

142142
/**
143143
* Compiles the authentication path and a signature using the correct signing key. Converts the encrypted payload
@@ -165,7 +165,7 @@ export class RAAM extends RAAMReader {
165165
*/
166166
public publish(message: Trytes, {index, tag , depth, mwm , iota, messagePassword, nextRoot}?:
167167
{index?: number, tag?: Trytes, depth?: number, mwm?: number, iota?: API,
168-
messagePassword?: Trytes, nextRoot?: Int8Array}): Promise<Hash>;
168+
messagePassword?: Trytes, nextRoot?: Int8Array}): Promise<Transaction[]>;
169169

170170
/**
171171
* Creates a RAAM channel from a seed. For that a merkle tree is created consisting of all one-time signing keys that

0 commit comments

Comments
 (0)