title: How can I add ui-router stateProvider configuration to my application with Typescript?
body: <p>Before when not using Typescript I was adding my ui-router state information like this:</p>
  
  <pre><code>app.config([
      '$httpProvider',
      '$locationProvider',
      '$sceProvider',
      '$stateProvider',
      appConfig
  ]);
  
  function appConfig(
      $httpProvider, 
      $locationProvider,
      $sceProvider,
      $stateProvider
      ) {
  
      $locationProvider.html5Mode(true);
      $sceProvider.enabled(false);
  
      var admin = {
          name: 'admin',
          url: '/admin',
          views: {
  ...
          }
      };
  </code></pre>
  
  <p>Now I am using Typescript I assume I should code this into a class.  But how can I add the class to my app? I already have this code where I added a controller:</p>
  
  <pre><code>var app = angular.module('app',
      [
      ])
      .controller('appController', AppController);
  </code></pre>
  
  <p>I tried to add the state information as a .config but it appears this only accepts a function as the argument. </p>
  
  <p>Can someone tell me how I can add my state information for ui-router to my app?</p>