Skip to content

Commit 3478b0b

Browse files
tetsuharuohzekibenlesh
authored andcommitted
feat(package.json): update TypeScript to v2.0
BREAKING CHANGE: TypeScript definitions are now for TS 2.0 and higher Even if we use getter for class, they are marked with `readonly` properties in d.ts.
1 parent 0e01d9a commit 3478b0b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
"sinon-chai": "^2.8.0",
184184
"source-map-support": "^0.4.0",
185185
"tslint": "^3.15.1",
186-
"typescript": "^1.8.10",
186+
"typescript": "^2.0.3",
187187
"typings": "^1.3.3",
188188
"validate-commit-msg": "^2.3.1",
189189
"watch": "^0.18.0",

spec/subjects/BehaviorSubject-spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ describe('BehaviorSubject', () => {
4444
const subject = new BehaviorSubject('flibberty');
4545

4646
try {
47-
subject.value = 'jibbets';
47+
// XXX: escape from readonly restriction for testing.
48+
(subject as any).value = 'jibbets';
4849
} catch (e) {
4950
//noop
5051
}

0 commit comments

Comments
 (0)