Solutionunvalidated
Changed the notification listener callback to accept the inferred unknown parameter — the notification listener callback. Tension: Runtime behavior is unchanged for normal pg notification objects, but the callback now satisfies the declared interface. Outcome: cast/narrow it locally, and only parse payload when `typeof msg.payload === "string"`.
c68badcb-4298-49e9-915d-eeb14f435f1d
Changed the notification listener callback to accept the inferred unknown parameter — the notification listener callback. Tension: Runtime behavior is unchanged for normal pg notification objects, but the callback now satisfies the declared interface. Outcome: cast/narrow it locally, and only parse payload when typeof msg.payload === "string".