From dfdea0a3a61dae94241683cbc107162702a36747 Mon Sep 17 00:00:00 2001 From: Dmitrii Polovnev Date: Thu, 12 Sep 2024 02:40:08 +0300 Subject: [PATCH] =?UTF-8?q?#5497=20=E2=80=93=20Refactor=20(Connection.ts):?= =?UTF-8?q?=20Specify=20the=20types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/domain/entities/canvas-matrix/Connection.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/ketcher-core/src/domain/entities/canvas-matrix/Connection.ts b/packages/ketcher-core/src/domain/entities/canvas-matrix/Connection.ts index a86a2f1d70..f810f4e90f 100644 --- a/packages/ketcher-core/src/domain/entities/canvas-matrix/Connection.ts +++ b/packages/ketcher-core/src/domain/entities/canvas-matrix/Connection.ts @@ -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, ) {} }