/**
 * Union and intersection type conversion
 */
import { normalizedUnionType } from "../../../types/type-ops.js";
/**
 * Convert TypeScript union type to IR union type
 */
export const convertUnionType = (node, binding, convertType) => {
    return normalizedUnionType(node.types.map((t) => convertType(t, binding)));
};
/**
 * Convert TypeScript intersection type to IR intersection type
 */
export const convertIntersectionType = (node, binding, convertType) => {
    return {
        kind: "intersectionType",
        types: node.types.map((t) => convertType(t, binding)),
    };
};
//# sourceMappingURL=unions-intersections.js.map