Skip to content

Commit

Permalink
Merge pull request #427 from axonivy/enable-ts-strict
Browse files Browse the repository at this point in the history
Enable typescript strict compiler option
  • Loading branch information
ivy-cst authored Nov 27, 2023
2 parents 7e61b02 + bea7213 commit ad03a0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions configs/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"noImplicitThis": true,
"noUnusedLocals": true,
"noImplicitReturns": true,
"strict": true,
"strictPropertyInitialization": false,
"strictNullChecks": true,
"experimentalDecorators": true,
"downlevelIteration": true,
Expand Down
6 changes: 3 additions & 3 deletions packages/editor/src/lanes/change-lane-bounds-tool-feedback.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FeedbackCommand, isNotUndefined, Action, CommandExecutionContext, CommandReturn, TYPES } from '@eclipse-glsp/client';
import { FeedbackCommand, isNotUndefined, Action, CommandExecutionContext, CommandReturn, TYPES, toArray } from '@eclipse-glsp/client';
import { inject, injectable } from 'inversify';

import { addLaneResizeHandles, isLaneResizable, removeLaneResizeHandles } from './model';
Expand Down Expand Up @@ -37,7 +37,7 @@ export class ShowChangeLaneBoundsToolFeedbackCommand extends FeedbackCommand {

execute(context: CommandExecutionContext): CommandReturn {
const index = context.root.index;
index.all().filter(isLaneResizable).forEach(removeLaneResizeHandles);
toArray(index.all()).filter(isLaneResizable).forEach(removeLaneResizeHandles);

if (isNotUndefined(this.action.elementId)) {
const resizeElement = index.getById(this.action.elementId);
Expand All @@ -57,7 +57,7 @@ export class HideChangeLaneBoundsToolFeedbackCommand extends FeedbackCommand {

execute(context: CommandExecutionContext): CommandReturn {
const index = context.root.index;
index.all().filter(isLaneResizable).forEach(removeLaneResizeHandles);
toArray(index.all()).filter(isLaneResizable).forEach(removeLaneResizeHandles);
return context.root;
}
}

0 comments on commit ad03a0d

Please sign in to comment.