Duplicating the Airbrake config section instead of reusing.

It looks very tough to get it to work.

Signed-off-by: Karan Shah <karan.shah@simplybusiness.co.uk>
This commit is contained in:
Karan Shah
2022-02-10 11:13:33 +00:00
parent dcbd590efc
commit e5f1efcd96
5 changed files with 17 additions and 8 deletions
+2 -2
View File
@@ -8,9 +8,9 @@ import express from 'express';
import { Logger as Logger_2 } from 'winston';
// @public
export type AirbrakeConfig = {
export interface AirbrakeConfig {
apiKey: string;
};
}
// @public
export function createRouter(options: RouterOptions): Promise<express.Router>;
+2 -2
View File
@@ -39,9 +39,9 @@
},
"files": [
"dist",
"src/config/config.d.ts"
"config.d.ts"
],
"configSchema": "src/config/config.d.ts",
"configSchema": "config.d.ts",
"jest": {
"coverageThreshold": {
"global": {
@@ -14,7 +14,18 @@
* limitations under the License.
*/
import { Config } from '@backstage/config';
import { AirbrakeConfig } from '.';
/**
* The configuration needed for the airbrake-backend plugin
*
* @public
*/
export interface AirbrakeConfig {
/**
* The API Key to authenticate requests. More details on how to get this here: https://airbrake.io/docs/api/#authentication
*/
apiKey: string;
}
/**
* Extract the Airbrake config from a config object
+1 -3
View File
@@ -13,7 +13,5 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Config } from './config';
export { extractAirbrakeConfig } from './ExtractAirbrakeConfig';
export type AirbrakeConfig = Config['airbrake'];
export * from './ExtractAirbrakeConfig';