Skip to content

SessionRef

SessionRef = EdgeKitSession | ExternalSession

The session in a session read, told apart by kind. The API may add kinds, so keep a default arm in a switch on it. The type lists only the two known ones so that kind === 'edgekit' narrows id.