It is possible to specify void as a type parameter for generic function in TypeScript. And it works fine for return values of functions. However when void
void
You can do something like this:
class Example { process(func: T = undefined) { // use default undefined parameter } } var example = new Example(); exmple.process();
I'm using Typescript 1.8.7 and it worked for me fine.