summaryrefslogtreecommitdiffstats
path: root/src/decko.d.ts
blob: e65c737581aded2f3b97fa8ada546a1569e7275a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
 *
 */
export function bind<T>(
    target: Object,
    propertyKey: string | symbol,
    descriptor?: TypedPropertyDescriptor<T>
): TypedPropertyDescriptor<T> | void;
export function bind(): MethodDecorator;

/**
 * @param caseSensitive Makes cache keys case-insensitive
 * @param cache Presupply cache storage, for seeding or sharing entries
 */

export function memoize<T>(
    target: Object,
    propertyKey: string | symbol,
    descriptor?: TypedPropertyDescriptor<T>
): TypedPropertyDescriptor<T> | void;
export function memoize(caseSensitive?: boolean, cache?: Object): MethodDecorator;
/**
 * @param delay number
 */
export function debounce<T>(
    target: Object,
    propertyKey: string | symbol,
    descriptor?: TypedPropertyDescriptor<T>
): TypedPropertyDescriptor<T> | void;
export function debounce(delay?: number): MethodDecorator;