Do not unpack arguments directly on exported items

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-12-07 19:42:10 +01:00
parent 95ab7baba6
commit dcd1a0c3f4
66 changed files with 433 additions and 708 deletions
+1 -3
View File
@@ -41,11 +41,9 @@ export const configSchemaPlugin: BackstagePlugin<
{}
>;
// Warning: (ae-missing-release-tag) "StaticSchemaLoader" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public
export class StaticSchemaLoader implements ConfigSchemaApi {
constructor({ url }?: { url?: string });
constructor(options?: { url?: string });
// (undocumented)
schema$(): Observable<ConfigSchemaResult>;
}
@@ -24,12 +24,14 @@ const DEFAULT_URL = 'config-schema.json';
/**
* A ConfigSchemaApi implementation that loads the configuration from a URL.
*
* @public
*/
export class StaticSchemaLoader implements ConfigSchemaApi {
private readonly url: string;
constructor({ url = DEFAULT_URL }: { url?: string } = {}) {
this.url = url;
constructor(options: { url?: string } = {}) {
this.url = options?.url ?? DEFAULT_URL;
}
schema$(): Observable<ConfigSchemaResult> {