lib/types.js
function get(czConfig) {
    const types = [];

    if (typeof czConfig.types === 'undefined') {
        return defaults;
    }

    for (const type of czConfig.types) {
        types.push(type.value);
    }

    return types;
}
function get(czConfig) {
    const types = [];

    if (typeof czConfig.types === 'undefined') {
        return defaults;
    }

    for (const type of czConfig.types) {
        types.push(type.value);
    }

    return types;
}
Gets the `value` for `type-enum` rule of commitlint config.

@param {Object} czConfig A cz-customizable config.

@returns {Object} The `value`.