1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.default = isPlaceholderType;
|
7 |
|
8 | var _definitions = require("../definitions");
|
9 |
|
10 | function 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 |