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:
@@ -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>;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user