Skip to content

Commit

Permalink
#5497 – Refactor (Connection.ts): Specify the types
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriiP-EPAM committed Sep 11, 2024
1 parent 3fbdf73 commit dfdea0a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { SubChainNode } from 'domain/entities';

export class Connection {
constructor(
public polymerBond: PolymerBond,
public connectedNode: SubChainNode | null,
public direction: number | { x: number; y: number },
public readonly connectedNode: SubChainNode | null,
public readonly direction: 0 | 90 | 180 | 270 | { x: number; y: number },
public readonly isVertical: boolean,
public readonly polymerBond: PolymerBond,
public offset: number,
public yOffset: number,
public isVertical: boolean,
) {}
}

0 comments on commit dfdea0a

Please sign in to comment.