UNPKG

sussudio

Version:

An unofficial VS Code Internal API

11 lines (10 loc) 769 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ export declare function memoize(_target: any, key: string, descriptor: any): void; export interface IDebounceReducer<T> { (previousValue: T, ...args: any[]): T; } export declare function debounce<T>(delay: number, reducer?: IDebounceReducer<T>, initialValueProvider?: () => T): Function; export declare function throttle<T>(delay: number, reducer?: IDebounceReducer<T>, initialValueProvider?: () => T): Function;