From ae1cdd9e9f187936907a20d3e4364d808340d018 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Wed, 1 Apr 2026 21:30:27 +0200 Subject: [PATCH] cli: remove custom embedded-postgres type declarations The 18.x version ships its own .d.ts files that TypeScript resolves correctly, so the custom module declaration is no longer needed. Signed-off-by: Patrik Oldsberg Made-with: Cursor --- .../src/lib/runner/startEmbeddedDb.ts | 4 +-- packages/cli-module-build/src/types.d.ts | 34 ------------------- 2 files changed, 2 insertions(+), 36 deletions(-) delete mode 100644 packages/cli-module-build/src/types.d.ts diff --git a/packages/cli-module-build/src/lib/runner/startEmbeddedDb.ts b/packages/cli-module-build/src/lib/runner/startEmbeddedDb.ts index a5ab0540c2..4e02bf5819 100644 --- a/packages/cli-module-build/src/lib/runner/startEmbeddedDb.ts +++ b/packages/cli-module-build/src/lib/runner/startEmbeddedDb.ts @@ -45,8 +45,8 @@ export async function startEmbeddedDb() { password, port, persistent: false, - onError(_messageOrError: unknown) {}, - onLog(_message: unknown) {}, + onError() {}, + onLog() {}, }); // Create the cluster config files diff --git a/packages/cli-module-build/src/types.d.ts b/packages/cli-module-build/src/types.d.ts deleted file mode 100644 index 18f1c9c11a..0000000000 --- a/packages/cli-module-build/src/types.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright 2024 The Backstage Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -declare module 'embedded-postgres' { - export interface EmbeddedPostgresOptions { - databaseDir: string; - user: string; - password: string; - port: number; - persistent: boolean; - onError?: (messageOrError: unknown) => void; - onLog?: (message: unknown) => void; - } - - export default class EmbeddedPostgres { - constructor(options: EmbeddedPostgresOptions); - initialise(): Promise; - start(): Promise; - stop(): Promise; - } -}