Update comments

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2021-08-17 13:17:55 +02:00
parent 928c9ba27b
commit 4f685aac96
3 changed files with 4 additions and 14 deletions
+1 -9
View File
@@ -419,19 +419,11 @@ export function createNextRouter(
options: RouterOptions_2,
): Promise<express.Router>;
// Warning: (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
// Warning: (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
// Warning: (tsdoc-param-tag-with-invalid-name) The @param block should be followed by a valid parameter name: The identifier cannot non-word characters
// Warning: (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
// Warning: (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
// Warning: (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
// Warning: (tsdoc-param-tag-with-invalid-name) The @param block should be followed by a valid parameter name: The identifier cannot non-word characters
// Warning: (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
// Warning: (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
// Warning: (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
// Warning: (ae-missing-release-tag) "createRandomRefreshInterval" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
// @public
export function createRandomRefreshInterval(options: {
minSeconds: number;
maxSeconds: number;
@@ -165,8 +165,8 @@ export class NextCatalogBuilder {
}
/**
* Refresh spread configures configures the minimum and maximum number of seconds
* to wait between refreshes in addition to the configured refresh interval.
* Overwrites the default refresh interval function used to spread
* entity updates in the catalog.
*/
setRefreshInterval(
refreshInterval: RefreshIntervalFunction,
+1 -3
View File
@@ -20,10 +20,8 @@
export type RefreshIntervalFunction = () => number;
/**
* @param {number} options.minSeconds The minimum number of seconds between refreshes
* @param {number} options.maxSeconds The maximum number of seconds between refreshes
* Creates a function that returns a random refresh interval between minSeconds and maxSeconds.
* @returns {RefreshIntervalFunction} that provides the next refresh interval
*
*/
export function createRandomRefreshInterval(options: {
minSeconds: number;