What attachAwareness needs from a viewport; Viewport satisfies it.
This does not extends LocalAwarenessHost, RemoteCursorOverlayHost, RemoteSelectionOverlayHost: those three declare camera with different
member sets (screenToWorld vs zoom), and TypeScript rejects an
interface that extends multiple parents whose same-named property types
are not identical or mutually assignable. Listing the members directly
(with camera widened to carry both) keeps AwarenessViewport
structurally assignable to all three host types.
What
attachAwarenessneeds from a viewport;Viewportsatisfies it.This does not
extends LocalAwarenessHost, RemoteCursorOverlayHost, RemoteSelectionOverlayHost: those three declarecamerawith different member sets (screenToWorldvszoom), and TypeScript rejects an interface that extends multiple parents whose same-named property types are not identical or mutually assignable. Listing the members directly (withcamerawidened to carry both) keepsAwarenessViewportstructurally assignable to all three host types.