dispatchMessage function application exported

Last updated: 2026-03-05T10:53:28.852Z

Metrics

LOC: 7 Complexity: 2 Params: 2

Signature

dispatchMessage( message: ExtensionMessage, ): : Promise<unknown>

Source Code

export async function dispatchMessage(
  message: ExtensionMessage,
): Promise<unknown> {
  const handler = getHandlerForType(message.type);
  if (!handler) return null;
  return handler.handle(message);
}

Dependencies (Outgoing)

graph LR dispatchMessage["dispatchMessage"] getHandlerForType["getHandlerForType"] dispatchMessage -->|calls| getHandlerForType style dispatchMessage fill:#dbeafe,stroke:#2563eb,stroke-width:2px click dispatchMessage "5ff85783b526b44c.html" click getHandlerForType "5558432b6ab64704.html"
TargetType
getHandlerForType calls

Impact (Incoming)

graph LR dispatchMessage["dispatchMessage"] handleMessage["handleMessage"] handleMessage -->|calls| dispatchMessage style dispatchMessage fill:#dbeafe,stroke:#2563eb,stroke-width:2px click dispatchMessage "5ff85783b526b44c.html" click handleMessage "58fadf6b36b326d5.html"
SourceType
handleMessage calls