UNPKG

468 BJavaScriptView Raw
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}
\No newline at end of file