TypeScript Version:
1.8.2
Code
import {BehaviorSubject} from 'rxjs/Rx';
class Foo extends BehaviorSubject<string> {
}
class Bar extends BehaviorSubject<any>{
}
var ARRAY = [
Foo,
Bar,
];
The BehaviorSubject is a requirement, just using a local, generic class makes it work. I haven't tried further reducing the base class. Once you comment out one of the two array members, the compiler doesn't hang anymore.
Here is my package.json snippet:
"devDependencies": {
"typescript": "1.8.2"
},
"dependencies": {
"rxjs": "5.0.0-beta.2"
}
TypeScript Version:
1.8.2
Code
The
BehaviorSubjectis a requirement, just using a local, generic class makes it work. I haven't tried further reducing the base class. Once you comment out one of the two array members, the compiler doesn't hang anymore.Here is my
package.jsonsnippet: