@@ -102,7 +102,8 @@ function getEdges(lineage: Record<string, Lineage> = {}): Edge[] {
102102
103103 for ( const targetModelName of modelNames ) {
104104 const targetModel = lineage [ targetModelName ] !
105-
105+
106+ // @ts -ignore
106107 targetModel . models . forEach ( sourceModelName => {
107108 outputEdges . push ( createGraphEdge ( sourceModelName , targetModelName ) )
108109 } )
@@ -172,6 +173,7 @@ function getNodeMap({
172173 const modelNames = Object . keys ( lineage )
173174
174175 return modelNames . reduce ( ( acc : Record < string , Node > , modelName : string ) => {
176+ // @ts -ignore
175177 const model = models [ modelName ]
176178 const node = createGraphNode ( modelName , {
177179 label : model ?. displayName ?? modelName ,
@@ -187,6 +189,7 @@ function getNodeMap({
187189 : EnumLineageNodeModelType . cte ,
188190 } )
189191 const columnsCount = withColumns
192+ // @ts -ignore
190193 ? ( models [ modelName ] ?. columns ?. length ?? 0 )
191194 : 0
192195
@@ -216,6 +219,7 @@ function getNodeMap({
216219
217220 function getNodeMaxWidth ( label : string , hasColumns : boolean = false ) : number {
218221 const defaultWidth = label . length * CHAR_WIDTH
222+ // @ts -ignore
219223 const columns = models [ label ] ?. columns ?? [ ]
220224
221225 return hasColumns
@@ -366,6 +370,7 @@ function mergeLineageWithColumns(
366370 newLineageModelColumnModel ,
367371 ) ,
368372 ) ,
373+ // @ts -ignore
369374 ) . map ( encodeURI )
370375 }
371376 }
@@ -472,6 +477,7 @@ function getLineageIndex(lineage: Record<string, Lineage> = {}): string {
472477 const { models = [ ] , columns = { } } = lineage [ key ] !
473478 const allModels = new Set < string > ( )
474479
480+ // @ts -ignore
475481 models . forEach ( m => allModels . add ( m ) )
476482
477483 if ( isNotNil ( columns ) ) {
@@ -692,7 +698,7 @@ function getUpdatedNodes(
692698
693699function hasActiveEdge (
694700 activeEdges : ActiveEdges = new Map ( ) ,
695- [ leftConnect , rightConnect ] : [ Maybe < string > , Maybe < string > ] ,
701+ [ leftConnect , rightConnect ] : [ string | undefined | null , string | undefined | null ] ,
696702) : boolean {
697703 if ( isNil ( leftConnect ) && isNil ( rightConnect ) ) return false
698704
0 commit comments