Skip to content

Commit

Permalink
#2389 - add file to ignore TS any error
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaepam committed Aug 9, 2023
1 parent 7a46395 commit 9c999c7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/ketcher-core/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"src/application/render/restruct/rerxnarrow.ts",
"src/application/render/restruct/restruct.ts",
"src/application/render/restruct/retext.ts",
"src/application/render/restruct/resgroup.ts",
"src/domain/entities/atom.ts",
"src/domain/entities/atomList.ts",
"src/domain/entities/bond.ts",
Expand Down
14 changes: 10 additions & 4 deletions packages/ketcher-core/src/application/render/restruct/resgroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@
* limitations under the License.
***************************************************************************/

import { Box2Abs, FunctionalGroup, Pile, SGroup, Vec2 } from 'domain/entities';
import {
Box2Abs,
FunctionalGroup,
Pile,
SGroup,
Vec2,
Bond,
} from 'domain/entities';
import ReStruct from './restruct';
import { Render } from '../raphaelRender';
import { LayerMap } from './generalEnumTypes';
Expand All @@ -23,12 +30,11 @@ import { Scale } from 'domain/helpers';
import draw from '../draw';
import util from '../util';
import { tfx } from 'utilities';

interface SGroupdrawBracketsOptions {
set: any;
render: Render;
sg: SGroup;
crossBonds: { [key: number]: Array<any> };
crossBonds: { [key: number]: Array<Bond> };
atomSet: Pile;
bracketBox: Box2Abs;
d: Vec2;
Expand Down Expand Up @@ -81,7 +87,7 @@ class ReSGroup extends ReObject {
break;
}
case 'SRU': {
let connectivity = sgroup.data.connectivity || 'eu';
let connectivity: string = sgroup.data.connectivity || 'eu';
if (connectivity === 'ht') connectivity = '';
const subscript = sgroup.data.subscript || 'n';
SGroupdrawBracketsOptions.lowerIndexText = subscript;
Expand Down

0 comments on commit 9c999c7

Please sign in to comment.