Skip to content

Commit

Permalink
Update types
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Feb 27, 2019
1 parent 1137a0a commit 8fba53f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions lib/utils/debounce.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
/**
* Adds a `Debouncer` to a list of globally flushable tasks.
*
* @memberof Polymer
* @param {!Debouncer} debouncer Debouncer to enqueue
* @return {void}
*/
Expand Down
6 changes: 6 additions & 0 deletions types/lib/utils/debounce.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@ declare namespace Polymer {
*/
isActive(): boolean;
}


/**
* Adds a `Debouncer` to a list of globally flushable tasks.
*/
function enqueueDebouncer(debouncer: Debouncer): void;
}
7 changes: 1 addition & 6 deletions types/lib/utils/flush.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,11 @@
// tslint:disable:variable-name Describing an API that's defined elsewhere.

/// <reference path="boot.d.ts" />
/// <reference path="debounce.d.ts" />

declare namespace Polymer {


/**
* Adds a `Polymer.Debouncer` to a list of globally flushable tasks.
*/
function enqueueDebouncer(debouncer: Polymer.Debouncer): void;


/**
* Forces several classes of asynchronously queued tasks to flush:
* - Debouncers added via `enqueueDebouncer`
Expand Down

0 comments on commit 8fba53f

Please sign in to comment.