"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.KEY_TYPE = 'design:type';
exports.KEY_PARAMETER = 'design:paramtypes';
exports.KEY_RETURN_TYPE = 'design:returntype';
exports.getMetadataType = makeMetadataGetter(exports.KEY_TYPE);
function makeMetadataGetter(metadataKey) {
    return (target, targetKey) => {
        if (targetKey) {
            return Reflect.getMetadata(metadataKey, target, targetKey);
        }
        else {
            return Reflect.getMetadata(metadataKey, target);
        }
    };
}
exports.makeMetadataGetter = makeMetadataGetter;
//# sourceMappingURL=util.js.map