mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-16 17:25:40 -05:00
1.0 wip
This commit is contained in:
14
src/system/function.ts
Normal file
14
src/system/function.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
// import { debounce as _debounce } from 'lodash';
|
||||
const _debounce = require('lodash.debounce');
|
||||
|
||||
export interface IDeferred {
|
||||
cancel(): void;
|
||||
flush(): void;
|
||||
}
|
||||
|
||||
export namespace Functions {
|
||||
export function debounce<T extends Function>(fn: T, wait?: number, options?: any): T & IDeferred {
|
||||
return _debounce(fn, wait, options);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user