Skip to content

Commit

Permalink
feat(package.json): update TypeScript to v2.0
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tetsuharuohzeki authored and benlesh committed Oct 10, 2016
1 parent 0e01d9a commit 3478b0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
"sinon-chai": "^2.8.0",
"source-map-support": "^0.4.0",
"tslint": "^3.15.1",
"typescript": "^1.8.10",
"typescript": "^2.0.3",
"typings": "^1.3.3",
"validate-commit-msg": "^2.3.1",
"watch": "^0.18.0",
Expand Down
3 changes: 2 additions & 1 deletion spec/subjects/BehaviorSubject-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ describe('BehaviorSubject', () => {
const subject = new BehaviorSubject('flibberty');

try {
subject.value = 'jibbets';
// XXX: escape from readonly restriction for testing.
(subject as any).value = 'jibbets';
} catch (e) {
//noop
}
Expand Down

0 comments on commit 3478b0b

Please sign in to comment.