UNPKG

@legumeinfo/web-components

Version:

Web Components for the Legume Information System and other AgBio databases

11 lines 647 B
/** * Substitutes the value of a global variable with another global variable's * value, calls the decorated method, and then restores the original value of * the substituted global variable. If the second global variable is not defined * then the original global variable's value is used. * * @param target - The global variable to have its value substituted. * @param source - The global variable to use as the target's substitute. */ export declare function globalSubstitution<T>(target: string, source: string): (_: T, __: string | symbol, descriptor: PropertyDescriptor) => PropertyDescriptor; //# sourceMappingURL=decorators.d.ts.map