UNPKG

@altostra/core

Version:

Core library for shared types and logic

15 lines (14 loc) 503 B
import type { ResourceId } from "../Common"; import type { Connection } from "."; export interface IConnectionId { readonly from: ResourceId; readonly to: ResourceId; } export declare class ConnectionId implements IConnectionId { readonly from: ResourceId; readonly to: ResourceId; constructor(connectionId: IConnectionId); constructor(from: ResourceId, to: ResourceId); equal(other: ConnectionId): boolean; static fromConnection(connection: Connection): ConnectionId; }