Skip to content

Commit

Permalink
Collector class params
Browse files Browse the repository at this point in the history
  • Loading branch information
TinaHeiligers committed Nov 4, 2020
1 parent eca93e8 commit a80b62c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/usage_collection/server/collector/collector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export interface CollectorOptions<T = unknown, U = T> {
type: string;
init?: Function;
/**
* Method to return `true`/`false` to confirm if the collector is ready for the `fetch` method to be called.
* Method to return `true`/`false` or Promise(`true`/`false`) to confirm if the collector is ready for the `fetch` method to be called.
*/
isReady: () => Promise<boolean> | boolean;
/**
Expand Down Expand Up @@ -101,7 +101,7 @@ export class Collector<T = unknown, U = T> {
* @param {Function} options.init (optional) - initialization function
* @param {Function} options.fetch - function to query data
* @param {Function} options.formatForBulkUpload - optional
* @param {boolean} options.isReady - boolean to indicate collector is ready to report data
* @param {Function} options.isReady - method that returns a boolean or Promise of a boolean to indicate the collector is ready to report data
* @param {Function} options.rest - optional other properties
*/
constructor(
Expand Down

0 comments on commit a80b62c

Please sign in to comment.