Skip to content

@waylis/core


@waylis/core / MessageBodyMap

Type Alias: MessageBodyMap ​

ts
type MessageBodyMap = {
  boolean: boolean;
  command: string;
  datetime: Date;
  file: FileMeta;
  files: FileMeta[];
  linechart: LineChart;
  markdown: string;
  number: number;
  option: string;
  options: string[];
  table: Table;
  text: string;
};

Defined in: message/types.ts:85

Maps each message body type to its corresponding content shape.

Properties ​

boolean ​

ts
boolean: boolean;

Defined in: message/types.ts:89


command ​

ts
command: string;

Defined in: message/types.ts:86


datetime ​

ts
datetime: Date;

Defined in: message/types.ts:94


file ​

ts
file: FileMeta;

Defined in: message/types.ts:90


files ​

ts
files: FileMeta[];

Defined in: message/types.ts:91


linechart ​

ts
linechart: LineChart;

Defined in: message/types.ts:96


markdown ​

ts
markdown: string;

Defined in: message/types.ts:95


number ​

ts
number: number;

Defined in: message/types.ts:88


option ​

ts
option: string;

Defined in: message/types.ts:92


options ​

ts
options: string[];

Defined in: message/types.ts:93


table ​

ts
table: Table;

Defined in: message/types.ts:97


text ​

ts
text: string;

Defined in: message/types.ts:87

Released under the MIT License.