gxc-model-base/lib/src/decorators/immutable.ts
Andrey Kernichniy 7742cc7a83
All checks were successful
CI / build (push) Successful in 24s
Release package version 0.0.2
Update models, added parser
2026-03-14 15:12:21 +07:00

5 lines
180 B
TypeScript

export const IMMUTABLE_KEY = Symbol("secret");
export function immutable(target: any, propertyKey: string) {
Reflect.defineMetadata(IMMUTABLE_KEY, true, target, propertyKey);
}