Last change
on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
468 bytes
|
Rev | Line | |
---|
[6a3a178] | 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 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.