From 33c37fb8936c9906bbe6a6accd8f515a5ca59699 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Wed, 27 Feb 2019 18:17:52 -0800 Subject: [PATCH] Fix lint, update types --- test/unit/debounce.html | 1 - types/lib/utils/debounce.d.ts | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/unit/debounce.html b/test/unit/debounce.html index fbb330753c..b380a62185 100644 --- a/test/unit/debounce.html +++ b/test/unit/debounce.html @@ -214,7 +214,6 @@ const testEnqueue = (shouldFlush, done) => { const actualOrder = []; - let i=1; const enqueue = (type, {db, cb} = {}) => { cb = cb || (() => actualOrder.push(cb)); db = Polymer.Debouncer.debounce(db, type, cb); diff --git a/types/lib/utils/debounce.d.ts b/types/lib/utils/debounce.d.ts index ceb853ef08..57bf1846ac 100644 --- a/types/lib/utils/debounce.d.ts +++ b/types/lib/utils/debounce.d.ts @@ -68,6 +68,11 @@ declare namespace Polymer { */ cancel(): void; + /** + * Cancels a debouncer's async callback. + */ + _cancelAsync(): void; + /** * Flushes an active debouncer and returns a reference to itself. */