"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isFamilyExpansionType = isFamilyExpansionType;
const hub_types_1 = require("../../hub-types");
/**
 * Checks to see if our type is a family expansion,
 * i.e. our type is a key in HubFamilies and it begins with a dollar sign
 *
 * $content, $site, etc.
 * @param key
 * @returns
 */
function isFamilyExpansionType(key) {
    let result = false;
    // if we have a key, the first character of the key is a $, and the key without the $ is in Hub Families
    if (key &&
        key.charAt(0) === "$" &&
        hub_types_1.HubFamilies.includes(key.slice(1))) {
        result = true;
    }
    return result;
}
//# sourceMappingURL=isFamilyExpansionType.js.map