UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

8 lines (7 loc) 338 B
/** * Memoize a getter * * The getter will only be evaluated once; subsequent calls will return the previously * produced result without recalculation. */ export declare function memoizedGetter<This extends object, Return>(target: (this: This) => Return, _context: ClassGetterDecoratorContext<This, Return>): (this: This) => Return;