fix(core): update

This commit is contained in:
2019-04-22 09:58:36 +02:00
parent 904a48d414
commit 39d3a0f2f8
11 changed files with 91 additions and 57 deletions

View File

@ -1,7 +1,15 @@
export interface IUniverseMessage {
export interface IMessageCreator {
messageText: string;
targetChannelName: string;
passphrase: string;
payload?: string | number | any;
payloadStringType?: 'Buffer' | 'string' | 'object';
targetChannelName: string;
}
export interface IUniverseMessage extends IMessageCreator {
id: string;
/**
* time of creation
*/
timestamp: number;
passphrase: string;
}