Created
May 1, 2013 14:50
-
-
Save ksummerlin/5495712 to your computer and use it in GitHub Desktop.
The concept of a static constructor does not exist in the TypeScript language (as of v0.8.3)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo { | |
static baseTime: Date; | |
static constructor() { | |
Foo.baseTime = new Date(); | |
Foo.baseTime.setMilliseconds(0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment