import { InspectMessage } from './inspect' ; export type ClientMessage = InspectMessage ; export type ServerMessage = never ; export type InspectEnvelope < T extends ClientMessage | ServerMessage > = { type : 'effection-inspect' ; payload : T ; } ; export function isInspectEnvelope < T extends ClientMessage | ServerMessage > ( message ) { return message ?. type === 'effection-inspect' ; }