smartuniverse/ts/interfaces/universemessage.interfaces.ts
2019-09-10 23:55:20 +02:00

18 lines
300 B
TypeScript

export interface IMessageCreator {
messageText: string;
payload?: string | number | any;
}
/**
* A universe
*/
export interface IUniverseMessage extends IMessageCreator {
id: string;
/**
* time of creation
*/
timestamp: number;
passphrase: string;
targetChannelName: string;
}