config-loader: fix API Report warnings

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-01-10 15:35:06 +01:00
parent 416323397a
commit 06ab42b65d
2 changed files with 3 additions and 6 deletions
-6
View File
@@ -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;
+3
View File
@@ -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<void>;
};
/** @public */
export type LoadConfigOptionsRemote = {
/**
* A remote config reloading period, in seconds