Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/node_modules.8/@babel/types/lib/builders/flow/
Upload File :
Current File : /home/infinitibizsol/.trash/node_modules.8/@babel/types/lib/builders/flow/createFlowUnionType.js

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = createFlowUnionType;
var _index = require("../generated/index.js");
var _removeTypeDuplicates = require("../../modifications/flow/removeTypeDuplicates.js");
function createFlowUnionType(types) {
  const flattened = (0, _removeTypeDuplicates.default)(types);
  if (flattened.length === 1) {
    return flattened[0];
  } else {
    return (0, _index.unionTypeAnnotation)(flattened);
  }
}

//# sourceMappingURL=createFlowUnionType.js.map

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists