| 1 |
## API Report File for "@lumino/messaging" |
| 2 |
|
| 3 |
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). |
| 4 |
|
| 5 |
```ts |
| 6 |
|
| 7 |
// @public |
| 8 |
export class ConflatableMessage extends Message { |
| 9 |
conflate(other: ConflatableMessage): boolean; |
| 10 |
get isConflatable(): boolean; |
| 11 |
} |
| 12 |
|
| 13 |
// @public |
| 14 |
export interface IMessageHandler { |
| 15 |
processMessage(msg: Message): void; |
| 16 |
} |
| 17 |
|
| 18 |
// @public |
| 19 |
export interface IMessageHook { |
| 20 |
messageHook(handler: IMessageHandler, msg: Message): boolean; |
| 21 |
} |
| 22 |
|
| 23 |
// @public |
| 24 |
export class Message { |
| 25 |
constructor(type: string); |
| 26 |
conflate(other: Message): boolean; |
| 27 |
get isConflatable(): boolean; |
| 28 |
readonly type: string; |
| 29 |
} |
| 30 |
|
| 31 |
// @public |
| 32 |
export type MessageHook = IMessageHook | ((handler: IMessageHandler, msg: Message) => boolean); |
| 33 |
|
| 34 |
// @public |
| 35 |
export namespace MessageLoop { |
| 36 |
export function clearData(handler: IMessageHandler): void; |
| 37 |
export type ExceptionHandler = (err: Error) => void; |
| 38 |
export function flush(): void; |
| 39 |
export function getExceptionHandler(): ExceptionHandler; |
| 40 |
export function installMessageHook(handler: IMessageHandler, hook: MessageHook): void; |
| 41 |
export function postMessage(handler: IMessageHandler, msg: Message): void; |
| 42 |
export function removeMessageHook(handler: IMessageHandler, hook: MessageHook): void; |
| 43 |
export function sendMessage(handler: IMessageHandler, msg: Message): void; |
| 44 |
export function setExceptionHandler(handler: ExceptionHandler): ExceptionHandler; |
| 45 |
} |
| 46 |
|
| 47 |
// (No @packageDocumentation comment for this package) |
| 48 |
|
| 49 |
``` |