code: function flushTypeQueue() {
      while(typeQueue.length) {
        var type = typeQueue.shift();
        if (type.pattern) throw new Error("You cannot override a type's .pattern at runtime.");
        angular.extend($types[type.name], injector.invoke(type.def));
      }
    }
docs: `flushTypeQueue()` waits until `$urlMatcherFactory` is injected before invoking the queued `definitionFn`s