From 06ab42b65d2ede4da97bf016c6612f68fd812e63 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Mon, 10 Jan 2022 15:35:06 +0100 Subject: [PATCH] config-loader: fix API Report warnings Signed-off-by: Patrik Oldsberg --- packages/config-loader/api-report.md | 6 ------ packages/config-loader/src/loader.ts | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/config-loader/api-report.md b/packages/config-loader/api-report.md index 269159aab4..106c744d7b 100644 --- a/packages/config-loader/api-report.md +++ b/packages/config-loader/api-report.md @@ -23,8 +23,6 @@ export type ConfigSchemaProcessingOptions = { withFilteredKeys?: boolean; }; -// Warning: (ae-missing-release-tag) "ConfigTarget" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) -// // @public (undocumented) export type ConfigTarget = | { @@ -51,15 +49,11 @@ export type LoadConfigOptions = { watch?: LoadConfigOptionsWatch; }; -// Warning: (ae-missing-release-tag) "LoadConfigOptionsRemote" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) -// // @public (undocumented) export type LoadConfigOptionsRemote = { reloadIntervalSeconds: number; }; -// Warning: (ae-missing-release-tag) "LoadConfigOptionsWatch" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) -// // @public (undocumented) export type LoadConfigOptionsWatch = { onChange: (configs: AppConfig[]) => void; diff --git a/packages/config-loader/src/loader.ts b/packages/config-loader/src/loader.ts index e16a49df89..03a6805da0 100644 --- a/packages/config-loader/src/loader.ts +++ b/packages/config-loader/src/loader.ts @@ -29,8 +29,10 @@ import { } from './lib'; import fetch from 'node-fetch'; +/** @public */ export type ConfigTarget = { path: string } | { url: string }; +/** @public */ export type LoadConfigOptionsWatch = { /** * A listener that is called when a config file is changed. @@ -43,6 +45,7 @@ export type LoadConfigOptionsWatch = { stopSignal?: Promise; }; +/** @public */ export type LoadConfigOptionsRemote = { /** * A remote config reloading period, in seconds