src/main/webapp/app/flow/editor.ts:183:11 - error TS2454: Variable 'closestData' is used before being assigned.
183 if (closestData) {
~~~~~~~~~~~
src/main/webapp/app/flow/editor.ts:224:59 - error TS2339: Property 'get' does not exist on type 'Link'.
224 let outgoingLinksNumber = links.filter(l => l.get('source').id === e.id).length;
~~~
src/main/webapp/app/flow/editor.ts:225:59 - error TS2339: Property 'get' does not exist on type 'Link'.
225 let incomingLinksNumber = links.filter(l => l.get('target').id === e.id).length;
~~~
src/main/webapp/app/flow/editor.ts:470:25 - error TS2339: Property 'get' does not exist on type 'Link'.
470 let source = link.get('source').id;
~~~
src/main/webapp/app/flow/editor.ts:471:25 - error TS2339: Property 'get' does not exist on type 'Link'.
471 let target = link.get('target').id;
~~~
src/main/webapp/app/flow/editor.ts:483:55 - error TS2339: Property 'model' does not exist on type 'ElementView | LinkView'.
Property 'model' does not exist on type 'ElementView'.
483 let sourceEnd : Flo.LinkEnd = {id: sourceView.model.id, selector: sourceView.getSelector(magnetS, null)};
~~~~~
src/main/webapp/app/flow/editor.ts:483:98 - error TS2345: Argument of type 'SVGElement | undefined' is not assignable to parameter of type
'SVGElement'.
Type 'undefined' is not assignable to type 'SVGElement'.
483 let sourceEnd : Flo.LinkEnd = {id: sourceView.model.id, selector: sourceView.getSelector(magnetS, null)};
~~~~~~~
src/main/webapp/app/flow/editor.ts:484:13 - error TS2532: Object is possibly 'undefined'.
484 if (magnetS.getAttribute('port')) {
~~~~~~~
src/main/webapp/app/flow/editor.ts:485:11 - error TS2322: Type 'string | null' is not assignable to type 'string | undefined'.
Type 'null' is not assignable to type 'string | undefined'.
485 sourceEnd.port = magnetS.getAttribute('port');
~~~~~~~~~~~~~~
src/main/webapp/app/flow/editor.ts:485:28 - error TS2532: Object is possibly 'undefined'.
485 sourceEnd.port = magnetS.getAttribute('port');
~~~~~~~
src/main/webapp/app/flow/editor.ts:487:55 - error TS2339: Property 'model' does not exist on type 'ElementView | LinkView'.
Property 'model' does not exist on type 'ElementView'.
487 let targetEnd : Flo.LinkEnd = {id: targetView.model.id, selector: targetView.getSelector(magnetT, null)};
~~~~~
src/main/webapp/app/flow/editor.ts:487:98 - error TS2345: Argument of type 'SVGElement | undefined' is not assignable to parameter of type
'SVGElement'.
Type 'undefined' is not assignable to type 'SVGElement'.
487 let targetEnd : Flo.LinkEnd = {id: targetView.model.id, selector: targetView.getSelector(magnetT, null)};
~~~~~~~
src/main/webapp/app/flow/editor.ts:488:13 - error TS2532: Object is possibly 'undefined'.
488 if (magnetT.getAttribute('port')) {
~~~~~~~
src/main/webapp/app/flow/editor.ts:489:11 - error TS2322: Type 'string | null' is not assignable to type 'string | undefined'.
Type 'null' is not assignable to type 'string | undefined'.
489 targetEnd.port = magnetT.getAttribute('port');
~~~~~~~~~~~~~~
src/main/webapp/app/flow/editor.ts:489:28 - error TS2532: Object is possibly 'undefined'.
489 targetEnd.port = magnetT.getAttribute('port');
~~~~~~~
src/main/webapp/app/flow/editor.ts:491:50 - error TS2345: Argument of type 'null' is not assignable to parameter of type 'ElementMetadata | undefined'.
491 context.createLink(sourceEnd, targetEnd, null, null);
~~~~
src/main/webapp/app/flow/editor.ts:498:55 - error TS2339: Property 'model' does not exist on type 'ElementView | LinkView'.
Property 'model' does not exist on type 'ElementView'.
498 let sourceEnd : Flo.LinkEnd = {id: sourceView.model.id, selector: sourceView.getSelector(magnetS, null)};
~~~~~
src/main/webapp/app/flow/editor.ts:498:98 - error TS2345: Argument of type 'SVGElement | undefined' is not assignable to parameter of type
'SVGElement'.
Type 'undefined' is not assignable to type 'SVGElement'.
498 let sourceEnd : Flo.LinkEnd = {id: sourceView.model.id, selector: sourceView.getSelector(magnetS, null)};
~~~~~~~
src/main/webapp/app/flow/editor.ts:499:13 - error TS2532: Object is possibly 'undefined'.
499 if (magnetS.getAttribute('port')) {
~~~~~~~
src/main/webapp/app/flow/editor.ts:500:11 - error TS2322: Type 'string | null' is not assignable to type 'string | undefined'.
Type 'null' is not assignable to type 'string | undefined'.
500 sourceEnd.port = magnetS.getAttribute('port');
~~~~~~~~~~~~~~
src/main/webapp/app/flow/editor.ts:500:28 - error TS2532: Object is possibly 'undefined'.
500 sourceEnd.port = magnetS.getAttribute('port');
~~~~~~~
src/main/webapp/app/flow/editor.ts:502:55 - error TS2339: Property 'model' does not exist on type 'ElementView | LinkView'.
Property 'model' does not exist on type 'ElementView'.
502 let targetEnd : Flo.LinkEnd = {id: targetView.model.id, selector: targetView.getSelector(magnetT, null)};
~~~~~
src/main/webapp/app/flow/editor.ts:502:98 - error TS2345: Argument of type 'SVGElement | undefined' is not assignable to parameter of type
'SVGElement'.
Type 'undefined' is not assignable to type 'SVGElement'.
502 let targetEnd : Flo.LinkEnd = {id: targetView.model.id, selector: targetView.getSelector(magnetT, null)};
~~~~~~~
src/main/webapp/app/flow/editor.ts:503:13 - error TS2532: Object is possibly 'undefined'.
503 if (magnetT.getAttribute('port')) {
~~~~~~~
src/main/webapp/app/flow/editor.ts:504:11 - error TS2322: Type 'string | null' is not assignable to type 'string | undefined'.
Type 'null' is not assignable to type 'string | undefined'.
504 targetEnd.port = magnetT.getAttribute('port');
~~~~~~~~~~~~~~
src/main/webapp/app/flow/editor.ts:504:28 - error TS2532: Object is possibly 'undefined'.
504 targetEnd.port = magnetT.getAttribute('port');
~~~~~~~
src/main/webapp/app/flow/editor.ts:506:50 - error TS2345: Argument of type 'null' is not assignable to parameter of type 'ElementMetadata | undefined'.
506 context.createLink(sourceEnd, targetEnd, null, null);
~~~~
src/main/webapp/app/flow/editor.ts:556:29 - error TS2339: Property 'get' does not exist on type 'Link'.
556 targetId = links[i].get('target').id;
~~~
src/main/webapp/app/flow/editor.ts:557:29 - error TS2339: Property 'get' does not exist on type 'Link'.
557 sourceId = links[i].get('source').id;
~~~
src/main/webapp/app/flow/editor.ts:588:7 - error TS7029: Fallthrough case in switch.
588 case 'enum':
~~~~~~~~~~~~
src/main/webapp/app/flow/editor.ts:610:68 - error TS2454: Variable 'validation' is used before being assigned.
610 return new Properties.GenericControlModel(property, inputType, validation);