Merge pull request #31166 from schultzp2020/constructor-parameters

refactor: convert constructor parameter properties for erasableSyntaxOnly compatibility
This commit is contained in:
Patrik Oldsberg
2025-10-15 18:56:42 +02:00
committed by GitHub
187 changed files with 1893 additions and 728 deletions
@@ -20,11 +20,11 @@ import { Logger as WinstonLogger, createLogger } from 'winston';
import Transport, { TransportStreamOptions } from 'winston-transport';
class BackstageLoggerTransport extends Transport {
constructor(
private readonly backstageLogger: LoggerService,
opts?: TransportStreamOptions,
) {
private readonly backstageLogger: LoggerService;
constructor(backstageLogger: LoggerService, opts?: TransportStreamOptions) {
super(opts);
this.backstageLogger = backstageLogger;
}
log(info: unknown, callback: VoidFunction) {
+12 -7
View File
@@ -79,13 +79,18 @@ export class Git {
[x: string]: string;
};
private constructor(
private readonly config: {
onAuth: AuthCallback;
token?: string;
logger?: LoggerService;
},
) {
private readonly config: {
onAuth: AuthCallback;
token?: string;
logger?: LoggerService;
};
private constructor(config: {
onAuth: AuthCallback;
token?: string;
logger?: LoggerService;
}) {
this.config = config;
this.onAuth = config.onAuth;
this.headers = {