@@ -16,9 +16,8 @@ const Workflow = {
1616 isInUseGroupNode ( name ) {
1717 const id = `workflow/${ name } `
1818 // Check if lready registered/in use in this workflow
19- // @ts -ignore
2019 if ( app . graph . extra ?. groupNodes ?. [ name ] ) {
21- // @ts -ignore
20+ // @ts -expect-error
2221 if ( app . graph . _nodes . find ( ( n ) => n . type === id ) ) {
2322 return Workflow . InUse . InWorkflow
2423 } else {
@@ -28,9 +27,7 @@ const Workflow = {
2827 return Workflow . InUse . Free
2928 } ,
3029 storeGroupNode ( name , data ) {
31- // @ts -ignore
3230 let extra = app . graph . extra
33- // @ts -ignore
3431 if ( ! extra ) app . graph . extra = extra = { }
3532 let groupNodes = extra . groupNodes
3633 if ( ! groupNodes ) extra . groupNodes = groupNodes = { }
@@ -133,7 +130,7 @@ class GroupNodeBuilder {
133130 // Use the built in copyToClipboard function to generate the node data we need
134131 const backup = localStorage . getItem ( 'litegrapheditor_clipboard' )
135132 try {
136- // @ts -ignore
133+ // @ts -expect-error
137134 // TODO Figure out if copyToClipboard is really taking this param
138135 app . canvas . copyToClipboard ( this . nodes )
139136 const config = JSON . parse (
@@ -328,7 +325,6 @@ export class GroupNodeConfig {
328325 null ,
329326 widget
330327 )
331- // @ts -ignore
332328 config = res ?. customConfig ?? config
333329 }
334330 }
@@ -352,7 +348,7 @@ export class GroupNodeConfig {
352348 }
353349 }
354350
355- // @ts -ignore
351+ // @ts -expect-error
356352 config . forceInput = true
357353 return {
358354 input : {
@@ -743,7 +739,7 @@ export class GroupNodeHandler {
743739 let link = app . graph . links [ linkId ]
744740
745741 // Use the outer link, but update the target to the inner node
746- // @ts -ignore
742+ // @ts -expect-error
747743 // TODO: Fix this
748744 link = {
749745 ...link ,
@@ -797,7 +793,7 @@ export class GroupNodeHandler {
797793 this . groupData . nodeData . nodes . map ( ( n , i ) => {
798794 const innerNode = LiteGraph . createNode ( n . type )
799795 innerNode . configure ( n )
800- // @ts -ignore
796+ // @ts -expect-error
801797 innerNode . id = `${ this . node . id } :${ i } `
802798 return innerNode
803799 } )
@@ -1411,9 +1407,7 @@ function addConvertToGroupOptions() {
14111407 }
14121408
14131409 // Add to canvas
1414- // @ts -ignore
14151410 const getCanvasMenuOptions = LGraphCanvas . prototype . getCanvasMenuOptions
1416- // @ts -ignore
14171411 LGraphCanvas . prototype . getCanvasMenuOptions = function ( ) {
14181412 const options = getCanvasMenuOptions . apply ( this , arguments )
14191413 const index =
@@ -1424,9 +1418,7 @@ function addConvertToGroupOptions() {
14241418 }
14251419
14261420 // Add to nodes
1427- // @ts -ignore
14281421 const getNodeMenuOptions = LGraphCanvas . prototype . getNodeMenuOptions
1429- // @ts -ignore
14301422 LGraphCanvas . prototype . getNodeMenuOptions = function ( node ) {
14311423 const options = getNodeMenuOptions . apply ( this , arguments )
14321424 if ( ! GroupNodeHandler . isGroupNode ( node ) ) {
0 commit comments