chore(): fix typescript errors

This commit is contained in:
Adam Bradley
2016-01-10 00:32:36 -06:00
parent 84f8e619b8
commit 3a88b9ff91
3 changed files with 19 additions and 19 deletions

View File

@ -51,14 +51,14 @@ function _baseExtend(dst, objs, deep) {
return dst;
}
export function debounce(func, wait, immediate) {
var timeout, args, context, timestamp, result;
export function debounce(func: any, wait: number, immediate: boolean) {
var timeout, args, context, timestamp: number, result;
return function() {
context = this;
args = arguments;
timestamp = new Date();
var later = function() {
var last = (new Date()) - timestamp;
timestamp = Date.now();
var later: any = function() {
var last: any = Date.now() - timestamp;
if (last < wait) {
timeout = setTimeout(later, wait - last);
} else {