source: trip-planner-front/node_modules/@babel/types/lib/validators/isPlaceholderType.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 468 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = isPlaceholderType;
7
8var _definitions = require("../definitions");
9
10function isPlaceholderType(placeholderType, targetType) {
11 if (placeholderType === targetType) return true;
12 const aliases = _definitions.PLACEHOLDERS_ALIAS[placeholderType];
13
14 if (aliases) {
15 for (const alias of aliases) {
16 if (targetType === alias) return true;
17 }
18 }
19
20 return false;
21}
Note: See TracBrowser for help on using the repository browser.