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 <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-04-01 21:30:27 +02:00
parent d80e59ce9e
commit ae1cdd9e9f
2 changed files with 2 additions and 36 deletions
@@ -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
-34
View File
@@ -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<void>;
start(): Promise<void>;
stop(): Promise<void>;
}
}