Initial code commit
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 56s

This commit is contained in:
Alan Bridgeman 2026-07-21 12:16:50 -05:00
commit db22585fcb
27 changed files with 2652 additions and 0 deletions

View file

@ -0,0 +1,11 @@
import 'reflect-metadata';
/** Metadata key used to store the partition key of an entity */
export const PARTITION_KEY_META = Symbol('polyglot:partitionKey');
/** Marks a property as the partition key of the entity. */
export function PartitionKey(): PropertyDecorator {
return (target, propertyKey) => {
Reflect.defineMetadata(PARTITION_KEY_META, propertyKey, target.constructor);
};
}