Created
February 12, 2016 16:16
-
-
Save rackaam/b290fc0d15e53c57721f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// ClassA.ts | |
"use strict"; | |
export = ClassA; | |
class ClassA { | |
private static c: number; | |
public static init(n: number) { | |
if (ClassA.c !== undefined) | |
throw new Error('Class already initialized'); | |
ClassA.c = n; | |
} | |
static foo(bonus: string) { | |
console.log('foo', ClassA.c, bonus); | |
ClassA.pfoo(); | |
} | |
private static pfoo() { | |
console.log('p coq'); | |
} | |
} | |
// other.ts | |
import ClassA = require('./ClassA'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment