Skip to content

Commit f2926b8

Browse files
committed
playground updated to TypeScript 2.7.2
1 parent 412cac9 commit f2926b8

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

playground/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"rxjs": "5.5.6",
3737
"tslib": "1.8.1",
3838
"typesafe-actions": "1.1.2",
39-
"utility-types": "1.0.0"
39+
"utility-types": "1.1.0"
4040
},
4141
"devDependencies": {
4242
"@types/enzyme": "3.1.8",
@@ -56,7 +56,7 @@
5656
"ts-jest": "22.0.1",
5757
"tslint": "5.8.0",
5858
"tslint-react": "3.3.3",
59-
"typescript": "2.6.2",
59+
"typescript": "2.7.2",
6060
"webpack": "3.10.0",
6161
"webpack-blocks": "1.0.0-rc.2"
6262
}

playground/src/hoc/with-state.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const withState = <P extends WrappedComponentProps>(
2323
static displayName = `withState(${WrappedComponent.name})`;
2424

2525
state: State = {
26-
count: (this.props.initialCount || 0)!,
26+
count: Number(this.props.initialCount) || 0,
2727
};
2828

2929
handleIncrement = () => {

playground/yarn.lock

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7211,7 +7211,11 @@ [email protected]:
72117211
version "1.1.2"
72127212
resolved "https://registry.yarnpkg.com/typesafe-actions/-/typesafe-actions-1.1.2.tgz#af88ede3ee254be425c3e0e02de11b182830ae48"
72137213

7214-
[email protected], typescript@^2.4.2:
7214+
7215+
version "2.7.2"
7216+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.7.2.tgz#2d615a1ef4aee4f574425cdff7026edf81919836"
7217+
7218+
typescript@^2.4.2:
72157219
version "2.6.2"
72167220
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.6.2.tgz#3c5b6fd7f6de0914269027f03c0946758f7673a4"
72177221

@@ -7467,9 +7471,9 @@ utila@~0.4:
74677471
version "0.4.0"
74687472
resolved "https://registry.yarnpkg.com/utila/-/utila-0.4.0.tgz#8a16a05d445657a3aea5eecc5b12a4fa5379772c"
74697473

7470-
utility-types@1.0.0:
7471-
version "1.0.0"
7472-
resolved "https://registry.yarnpkg.com/utility-types/-/utility-types-1.0.0.tgz#95e0774ed78ffa055fc228591963de3902e36609"
7474+
utility-types@1.1.0:
7475+
version "1.1.0"
7476+
resolved "https://registry.yarnpkg.com/utility-types/-/utility-types-1.1.0.tgz#52408b6ed852fdd4076b48b30ed726f139b0f116"
74737477

74747478
74757479
version "1.0.1"

0 commit comments

Comments
 (0)