For example, I am not able to use a URL shortener because it is not allowed, and because of that I am not able to post a comment with this URL:
http://www.typescriptlang.org/play/#src=type%20RequestType%20%3D%0D%0A%20%20%7C%20'foo'%0D%0A%20%20%7C%20'bar'%0D%0A%20%20%7C%20'baz'%3B%0D%0A%0D%0Ainterface%20SomeRequest%3CTType%20extends%20RequestType%3E%20%7B%0D%0A%20%20id%3A%20string%3B%0D%0A%20%20type%3A%20TType%3B%0D%0A%20%20sessionId%3A%20string%3B%0D%0A%20%20bucket%3A%20string%3B%0D%0A%20%20params%3A%20Array%3Cany%3E%3B%0D%0A%7D%0D%0A%0D%0Atype%20ResponseResult%20%3D%20string%20%7C%20number%20%7C%20boolean%0D%0A%0D%0Atype%20ResponseResultOptions%3CT%3E%20%3D%0D%0A%20%20T%20extends%20'foo'%20%3F%20string%0D%0A%20%20%3A%20T%20extends%20'bar'%20%3F%20number%0D%0A%20%20%3A%20T%20extends%20'baz'%20%3F%20boolean%0D%0A%20%20%3A%20never%3B%0D%0A%0D%0Aasync%20function%20sendWorkRequest%3CT%20extends%20RequestType%3E(%0D%0A%20%20type%3A%20T%2C%0D%0A%20%20...params%0D%0A)%3A%20Promise%3CResponseResult%3E%20%7B%0D%0A%0D%0A%20%20await%20this.readyDeferred.promise%3B%0D%0A%0D%0A%20%20const%20request%3A%20SomeRequest%3CT%3E%20%3D%20%7B%0D%0A%20%20%20%20id%3A%20'abc'%2C%0D%0A%20%20%20%20bucket%3A%20'bucket'%2C%0D%0A%20%20%20%20type%2C%0D%0A%20%20%20%20sessionId%3A%20'some%20session%20id'%2C%0D%0A%20%20%20%20params%3A%20%5B1%2C%20'two'%2C%203%5D%2C%0D%0A%20%20%7D%3B%0D%0A%20%20const%20p%20%3D%20new%20Promise%3CResponseResultOptions%3CT%3E%3E(()%20%3D%3E%20%7B%20%7D)%3B%0D%0A%0D%0A%20%20this.requests%5Brequest.id%5D%20%3D%20p%3B%0D%0A%20%20this.worker.postMessage(request)%3B%0D%0A%20%20return%20p%3B%0D%0A%7D%0D%0A%0D%0Aasync%20function%20test()%20%7B%0D%0A%20%20const%20result%20%3D%20await%20sendWorkRequest('foo')%0D%0A%20%20result.split('string')%0D%0A%7D%0D%0A%0D%0Atest()