-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathdecko.d.ts
30 lines (28 loc) · 854 Bytes
/
decko.d.ts
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;