As in the following example, I am defining the return type of createServer() to be a MockServer interface (which is empty), instead of "Server" as defined in https://github.com/facebook/flow/blob/master/lib/node.js
Shouldn't this work, since an empty interface can stand in for any class?
/* @flow */
var http = require("http");
interface MockServer {}