Skip to content

Commit 0b19858

Browse files
committed
Upgraded to Typescript 2.0.2. Fixes #65.
1 parent 07c6099 commit 0b19858

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/core/logger.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {Level} from "./level";
55
* Logger options.
66
* See {@link Logger}.
77
*
8-
* level - How much detail you want to see in the logs, 1 being the less detailed, 5 being the most. Defaults to WARN.
8+
* level - How much detail you want to see in the logs, 0 being off, 1 being the less detailed, 5 being the most. Defaults to WARN.
99
* global - Whether you want the created logger object to be exposed in the global scope. Defaults to true.
1010
* globalAs - The window's property name that will hold the logger object created. Defaults to 'logger'.
1111
* store - Whether you want the level config to be saved in the local storage so it doesn't get lost when you refresh. Defaults to false.
@@ -59,7 +59,8 @@ export class Logger {
5959

6060
}
6161

62-
private _loadLevel = (): Level => localStorage.getItem( this._storeAs );
62+
private _loadLevel = (): Level => Level[localStorage.getItem( this._storeAs ) as string];
63+
6364
private _storeLevel(level: Level) { localStorage[ this._storeAs ] = level; }
6465

6566
error(message?: any, ...optionalParams: any[]) {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"devDependencies": {
7474
"rimraf": "^2.5.2",
7575
"tslint": "^3.8.1",
76-
"typescript": "1.8.10",
76+
"typescript": "^2.0.2",
7777
"typings": "^1.0.3",
7878
"uglify-js": "^2.6.2",
7979

0 commit comments

Comments
 (0)