I have this function, but when compiling the app.
public async test(options?: { engine?: Config }): Promise<any> {
const hostel = new Service({
list: this.servicesList,
createService: list => this.dbService.buildService(list)
});
return hostel.load();
}
I have this error:
26:27 error Missing return type on function
@typescript-eslint/explicit-function-return-type.
on this line createService: list => this.dbService.buildService(list) text**
Promise<any>
but are not returning anything from yourtest
method.