19 lines
354 B
TypeScript
19 lines
354 B
TypeScript
export interface IMessageCreator {
|
|
messageText: string;
|
|
payload?: string | number | any;
|
|
payloadStringType?: 'Buffer' | 'string' | 'object';
|
|
}
|
|
|
|
/**
|
|
* A universe
|
|
*/
|
|
export interface IUniverseMessage extends IMessageCreator {
|
|
id: string;
|
|
/**
|
|
* time of creation
|
|
*/
|
|
timestamp: number;
|
|
passphrase: string;
|
|
targetChannelName: string;
|
|
}
|