diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-11-20 06:45:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-11-20 06:45:41 +0000 |
commit | 9d45e42dc0298ea8241132142d3100358fe99dc4 (patch) | |
tree | 8435105a23089a82f8298490dff6e3e4218930b4 /src/decko.d.ts | |
parent | Initial commit. (diff) | |
download | decko-upstream.tar.xz decko-upstream.zip |
Adding upstream version 1.2.0.upstream/1.2.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/decko.d.ts')
-rw-r--r-- | src/decko.d.ts | 30 |
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 |