MCPcopy Create free account
hub / github.com/hashintel/hash / isWellFormattedMessage

Function isWellFormattedMessage

apps/plugin-browser/src/shared/messages.ts:30–33  ·  view source on GitHub ↗
(message: unknown)

Source from the content-addressed store, hash-verified

28 | GetTabContentRequest;
29
30export const isWellFormattedMessage = (message: unknown): message is Message =>
31 typeof message === "object" &&
32 message !== null &&
33 typeof (message as { type: unknown }).type === "string";

Callers 2

background.tsFile · 0.90
content.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected