One should only need to write:
function test(): Promise<void> {
return Promise.resolve(); // error type '{}' is not assignable to type 'void'
}
Though this produces the error
type '{}' is not assignable to type 'void'.
The current solution to silence the compiler is to pass undefined:
function test(): Promise<void> {
return Promise.resolve(undefined);
}