summaryrefslogtreecommitdiffstats
path: root/src/decko.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/decko.d.ts')
-rw-r--r--src/decko.d.ts30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/decko.d.ts b/src/decko.d.ts
new file mode 100644
index 0000000..e65c737
--- /dev/null
+++ b/src/decko.d.ts
@@ -0,0 +1,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; \ No newline at end of file