Given that we are dealing with callbacks constantly in Javascript, it would be nice if the callbacks would autocomplete, certainly in TypeScript as we have type declarations there.
When I type the following code
```
import http = require('http');
http.createServer(
```
I get a tooltip stating
> requestListener?: (request: ServerRequest, response: ServerResponse) => void
Suppose I press the enter key (or possibly Ctrl-space) the editor should autocomplete to the code below, and place the cursor inside the anonymous function.
```
import http = require('http');
http.createServer(function (request: http.ServerRequest, response: http.ServerResponse) {
}
```
When I type the following code
```
import http = require('http');
http.createServer(
```
I get a tooltip stating
> requestListener?: (request: ServerRequest, response: ServerResponse) => void
Suppose I press the enter key (or possibly Ctrl-space) the editor should autocomplete to the code below, and place the cursor inside the anonymous function.
```
import http = require('http');
http.createServer(function (request: http.ServerRequest, response: http.ServerResponse) {
}
```