so i have a interface like this
export interface AuthenticationService {
signUp(email: string, password: string): Promise<void>;
// login(email: string, password: string): Promise<string>;
}
so i implement the service in like this,
import {AuthenticationService} from "../application/authentication_repository";
import * as admin from "firebase-admin";
export class AuthenticationServiceImpl implements AuthenticationService {
async signUp(email: string, password: string): Promise<void> {
const auth = admin.auth();
const existingUser = await auth.createUser({
email: email,
password: password,
emailVerified: false,
disabled: false,
});
if (existingUser) {
throw new Error("User already exists");
}
}
// async login(email: string, password: string): Promise<string> {
// }
}
my i want to use the interface in the route but i keep getting error like this

how can i use the interface in the route?
i solve this by using
inversify