Skip to content

Commit

Permalink
chore: bump microbundle to 0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lionralfs committed Apr 26, 2021
1 parent 2b2e97e commit a97ec0e
Show file tree
Hide file tree
Showing 3 changed files with 3,382 additions and 821 deletions.
21 changes: 21 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Creates a new instance
* @param {object} options An options object
* @param {() => Promise} options.fn A promise
* @param {number} options.interval Time in ms representing the time span between the promise resolving and the next one firing
* @param {number} options.timeout The maximum amount of time in ms which the promise is allowed to take
* @param {(value: any) => any} options.onSuccess The success callback
* @param {(reason: any) => any} options.onError The error callback
*
* @returns {{start: () => void, stop: () => void}}
*/
export default function _default({ fn, interval, timeout, onSuccess, onError }: {
fn: () => Promise<any>;
interval: number;
timeout: number;
onSuccess: (value: any) => any;
onError: (reason: any) => any;
}): {
start: () => void;
stop: () => void;
};
Loading

0 comments on commit a97ec0e

Please sign in to comment.