I can't return no matter what I do.
This is my function (nestjs)

```js
async registerUser(body: UserInterface): Promise<string>

```

I tried everything, nothing works. I've read that callback might help, but I can't return even using a callback.

```js
        await this.startRegistration(userBuilder, (result) => {
            console.log(result);
            return result;
        });

```

The console log works, but the function doesn't return. When I try to assign the result to a value,

```js
        let testResult: any; 

        await this.startRegistration(userBuilder, (result) => {
            console.log(result);
            testResult = result;
            return result;
        });
        return testResult;

```

it just returns undefined...

my start registration func:

```js
async startRegistration(userBuilder: UserInterface, callback: (result: string) => void)

```

I am trying to call the callback this way:

```js
callback(JSON.stringify({error: "SUCCESS", errorCode: 10}));

```