refactor: convert constructor parameter properties for erasableSyntaxOnly compatibility

Signed-off-by: Paul Schultz <pschultz@pobox.com>
This commit is contained in:
Paul Schultz
2025-09-16 12:29:49 -05:00
parent b3a437e15d
commit 05f60e1e0a
167 changed files with 1826 additions and 679 deletions
@@ -29,7 +29,11 @@ const kindMappings: Record<string, string> = {
/** @public */
export class GkeClusterLinksFormatter implements ClusterLinksFormatter {
constructor(private readonly googleAuthApi: ProfileInfoApi | undefined) {}
private readonly googleAuthApi: ProfileInfoApi | undefined;
constructor(googleAuthApi: ProfileInfoApi | undefined) {
this.googleAuthApi = googleAuthApi;
}
async formatClusterLink(options: ClusterLinksFormatterOptions): Promise<URL> {
if (!options.dashboardParameters) {
throw new Error('GKE dashboard requires a dashboardParameters option');
@@ -19,7 +19,11 @@ import { KubernetesAuthProvider } from './types';
/** @public */
export class AksKubernetesAuthProvider implements KubernetesAuthProvider {
constructor(private readonly microsoftAuthApi: OAuthApi) {}
private readonly microsoftAuthApi: OAuthApi;
constructor(microsoftAuthApi: OAuthApi) {
this.microsoftAuthApi = microsoftAuthApi;
}
async decorateRequestBodyForAuth(
requestBody: KubernetesRequestBody,
@@ -19,7 +19,11 @@ import { KubernetesRequestBody } from '@backstage/plugin-kubernetes-common';
import { KubernetesAuthProviders } from './KubernetesAuthProviders';
class MockAuthApi implements OAuthApi, OpenIdConnectApi {
constructor(private readonly token: string) {}
private readonly token: string;
constructor(token: string) {
this.token = token;
}
getAccessToken = jest.fn(async () => {
return this.token;