What's the point of this section of code in Typescript?
<p>I'm reading the handbook for Typescript and I noticed section of code that is (to me) pointless. Can some explain what the purpose of this is?</p>

<p>Taken from the <a href="http://www.typescriptlang.org/Handbook#classes-advanced-techniques" rel="nofollow">docs</a>:</p>

<pre><code>class Greeter {
    static standardGreeting = "Hello, there";
    greeting: string;
    greet() {
        if (this.greeting) {
            return "Hello, " + this.greeting;
        }
        else {
            return Greeter.standardGreeting;
        }
    }
}

var greeter1: Greeter;
greeter1 = new Greeter();
alert(greeter1.greet());

var greeterMaker: typeof Greeter = Greeter; // This line
greeterMaker.standardGreeting = "Hey there!"; // This line
var greeter2:Greeter = new greeterMaker(); // And this line
alert(greeter2.greet());
</code></pre>

<p>So, what the docs say is that <code>var greeterMaker: typeof Greeter = Greeter</code> "will hold the class itself." I'm not entirely sure what that means either</p>

<p>Then it does this:</p>

<pre><code>greeterMaker.standardGreeting = "Hey there!";

// Which does the exact same thing as this:
Greeter.standardGreeting = "Hey there!";
</code></pre>

<p>What am I missing here?</p>