UI Router's Resolve and TypeScript
<p>I'm curious as to how I would go about using UI Router's resolve with TypeScript.</p>

<pre><code>.state("signin.notActivated", &lt;ng.ui.IState&gt; {
                    controller: "SigninCtrl",
                    controllerAs: "signin",
                    url: "/notActivated",
                    resolve: {
                        inProgress: function() {
                            return { formData : null }
                        }
                    }
                })
</code></pre>

<p>In my controller, I have injected my resolve.</p>

<pre><code>constructor(public $state : angular.ui.IState, private inProgress) {
            this.init();                
        }

        private init = () =&gt; {
            this.someData = this.inProgress.formData; // error
        }
</code></pre>

<p>I am getting an unknown provider error, because TypeScript is trying to register it as a service.</p>

<p><a href="https://i.stack.imgur.com/6nmi2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6nmi2.png" alt="enter image description here"></a></p>

<p>Can this be done?</p>