@eklabdev/blingts4
Version:
A comprehensive TypeScript decorators library implementing Stage 2 decorators for TS 4.9+
15 lines (14 loc) • 458 B
TypeScript
/**
* Makes all properties of a class read-only
*/
export declare function Immutable(): <T extends new (...args: any[]) => Object>(target: T) => {
new (...args: any[]): {
constructor: Function;
toString(): string;
toLocaleString(): string;
valueOf(): Object;
hasOwnProperty(v: PropertyKey): boolean;
isPrototypeOf(v: Object): boolean;
propertyIsEnumerable(v: PropertyKey): boolean;
};
} & T;