Skip to content

Commit

Permalink
Fix lint, update types
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Feb 28, 2019
1 parent 52c41e6 commit 33c37fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/unit/debounce.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 5 additions & 0 deletions types/lib/utils/debounce.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 33c37fb

Please sign in to comment.