/**
 * @hidden
 */
export const KEY_TYPE = 'design:type';
/**
 * @hidden
 */
export const KEY_PARAMETER = 'design:paramtypes';
/**
 * @hidden
 */
export const KEY_RETURN_TYPE = 'design:returntype';
/**
 * @hidden
 */
export const getMetadataType = makeMetadataGetter(KEY_TYPE);
/**
 * @hidden
 */
export function makeMetadataGetter(metadataKey) {
    return (target, targetKey) => {
        if (targetKey) {
            return Reflect.getMetadata(metadataKey, target, targetKey);
        }
        else {
            return Reflect.getMetadata(metadataKey, target);
        }
    };
}
//# sourceMappingURL=util.js.map