Skip to content

Commit

Permalink
fix(functions): fix typo mapConcrete to mapNode
Browse files Browse the repository at this point in the history
  • Loading branch information
j33ty committed Nov 1, 2024
1 parent b9a368f commit c7070b4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/typeEvaluator/functions.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* eslint-disable max-statements */
import type {FuncCallNode} from '../nodeTypes'
import {Scope} from './scope'
import {walk} from './typeEvaluate'
import {mapNode, nullUnion} from './typeHelpers'
import type {NullTypeNode, TypeNode} from './types'
import type { FuncCallNode } from '../nodeTypes'
import { Scope } from './scope'
import { walk } from './typeEvaluate'
import { mapNode, nullUnion } from './typeHelpers'
import type { NullTypeNode, TypeNode } from './types'

function unionWithoutNull(unionTypeNode: TypeNode): TypeNode {
if (unionTypeNode.type === 'union') {
Expand Down Expand Up @@ -84,8 +84,8 @@ export function handleFuncCallNode(node: FuncCallNode, scope: Scope): TypeNode {
const arg1 = walk({node: node.args[0], scope})
const arg2 = walk({node: node.args[1], scope})

return mapConcrete(arg1, scope, (arg1) =>
mapConcrete(arg2, scope, (arg2) => {
return mapNode(arg1, scope, (arg1) =>
mapNode(arg2, scope, (arg2) => {
if (arg1.type !== 'array') {
return {type: 'null'}
}
Expand Down

0 comments on commit c7070b4

Please sign in to comment.