mirror of
https://github.com/hex248/ob248.com.git
synced 2026-02-08 18:53:02 +00:00
merge new into master
This commit is contained in:
28
node_modules/@babel/traverse/lib/path/inference/util.js
generated
vendored
Normal file
28
node_modules/@babel/traverse/lib/path/inference/util.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.createUnionType = createUnionType;
|
||||
var _t = require("@babel/types");
|
||||
const {
|
||||
createFlowUnionType,
|
||||
createTSUnionType,
|
||||
createUnionTypeAnnotation,
|
||||
isFlowType,
|
||||
isTSType
|
||||
} = _t;
|
||||
function createUnionType(types) {
|
||||
if (types.every(v => isFlowType(v))) {
|
||||
if (createFlowUnionType) {
|
||||
return createFlowUnionType(types);
|
||||
}
|
||||
return createUnionTypeAnnotation(types);
|
||||
} else if (types.every(v => isTSType(v))) {
|
||||
if (createTSUnionType) {
|
||||
return createTSUnionType(types);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//# sourceMappingURL=util.js.map
|
||||
Reference in New Issue
Block a user