source: imaps-frontend/node_modules/@babel/traverse/lib/path/inference/util.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 657 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.createUnionType = createUnionType;
7var _t = require("@babel/types");
8const {
9 createFlowUnionType,
10 createTSUnionType,
11 createUnionTypeAnnotation,
12 isFlowType,
13 isTSType
14} = _t;
15function createUnionType(types) {
16 {
17 if (types.every(v => isFlowType(v))) {
18 if (createFlowUnionType) {
19 return createFlowUnionType(types);
20 }
21 return createUnionTypeAnnotation(types);
22 } else if (types.every(v => isTSType(v))) {
23 if (createTSUnionType) {
24 return createTSUnionType(types);
25 }
26 }
27 }
28}
29
30//# sourceMappingURL=util.js.map
Note: See TracBrowser for help on using the repository browser.