import { IndexType } from './index-type.enum';
import { initOrUpdateIndex } from './util';
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