@@ -7,13 +7,9 @@ import { Config } from '@backstage/config';
|
||||
import { Logger } from 'winston';
|
||||
import { Module } from 'graphql-modules';
|
||||
|
||||
// Warning: (ae-missing-release-tag) "createModule" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export function createModule(options: ModuleOptions): Promise<Module>;
|
||||
|
||||
// Warning: (ae-missing-release-tag) "ModuleOptions" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export interface ModuleOptions {
|
||||
// (undocumented)
|
||||
|
||||
@@ -27,11 +27,13 @@ import GraphQLJSON, { GraphQLJSONObject } from 'graphql-type-json';
|
||||
import { Entity } from '@backstage/catalog-model';
|
||||
import typeDefs from '../schema';
|
||||
|
||||
/** @public */
|
||||
export interface ModuleOptions {
|
||||
logger: Logger;
|
||||
config: Config;
|
||||
}
|
||||
|
||||
/** @public */
|
||||
export async function createModule(options: ModuleOptions): Promise<Module> {
|
||||
const catalogClient = new CatalogClient(
|
||||
options.config.getString('backend.baseUrl'),
|
||||
|
||||
@@ -200,7 +200,6 @@ const PACKAGE_ROOTS = ['packages', 'plugins'];
|
||||
const ALLOW_WARNINGS = [
|
||||
'packages/core-components',
|
||||
'plugins/catalog',
|
||||
'plugins/catalog-graphql',
|
||||
'plugins/catalog-import',
|
||||
'plugins/cicd-statistics',
|
||||
'plugins/circleci',
|
||||
|
||||
Reference in New Issue
Block a user