UNPKG

@itrocks/former-name

Version:

Stores previous property names to help manage schema changes, legacy data access, and so on

4 lines (3 loc) 306 B
import { KeyOf, ObjectOrType } from '@itrocks/class-type'; export declare function FormerName<T extends object>(...formerName: string[]): import("@itrocks/decorator/property").DecorateCaller<T>; export declare function formerNameOf<T extends object>(target: ObjectOrType<T>, property: KeyOf<T>): string[];