Using typescript 4.1.2 with strict: true, I can declare a function like this without any complaints from the compiler:
typescript 4.1.2
strict: true