import { initOrUpdateIndex } from '../property/property.decorator';
import { IndexType } from './index-type.enum';
export function GSIPartitionKey(indexName) {
    return (target, propertyKey) => {
        if (typeof propertyKey === 'string') {
            initOrUpdateIndex(IndexType.GSI, { name: indexName, keyType: 'HASH' }, target, propertyKey);
        }
    };
}
//# sourceMappingURL=gsi-partition-key.decorator.js.map