docs: function(context, arg) {
  		var type = null;
  		switch (gui.Type.of(arg)) {
  			case "function":
  				type = arg; // TODO: confirm
  				break;
  			case "string":
  				type = gui.Object.lookup(arg, context);
  				break;
  			case "object":
  				console.error(this + ": expected edb.Type constructor (not an object)");
  				break;
  		}
  		if (!type) {
  			throw new TypeError("The type \"" + arg + "\" does not exist");
  		}
  		return type;
  	}