A class decorator that freezes a class instance to prevent modification.
Provides "silent immutability" by silently ignoring modifications in non-strict mode.
Workaround: To protect against aggressive bundlers (Rollup/Terser) mutating the TS 7.0
ES2022 decorator IIFE structure, users must append return Object.freeze(this) as this; to their
constructors to ensure immutability survives production bundling.
A class decorator that freezes a class instance to prevent modification. Provides "silent immutability" by silently ignoring modifications in non-strict mode.