Skip to content

Commit 6ee6420

Browse files
committed
Enable strict mode for TypeScript
1 parent 9365163 commit 6ee6420

File tree

3 files changed

+38
-5
lines changed

3 files changed

+38
-5
lines changed

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"author": "Marcin Chudy <[email protected]>",
88
"license": "MIT",
99
"scripts": {
10-
"build": "tsc"
10+
"build": "tsc",
11+
"prepublish": "tsc"
1112
},
1213
"repository": {
1314
"type": "git",
@@ -26,9 +27,11 @@
2627
"redux-devtools-themes": "^1.0.0"
2728
},
2829
"devDependencies": {
30+
"@types/dateformat": "^1.0.1",
2931
"@types/hex-rgba": "^1.0.0",
3032
"@types/react": "^16.7.3",
3133
"@types/react-native": "^0.57.7",
34+
"@types/redux-devtools": "^3.0.44",
3235
"bind-decorator": "^1.0.11",
3336
"typescript": "^3.1.1"
3437
}

tsconfig.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
"sourceMap": false,
1414
"outDir": "dist",
1515
"rootDir": "src",
16-
"declaration": true
16+
"declaration": true,
17+
"strict": true,
18+
"noImplicitAny": true
1719
},
1820
"include": ["src/**/*"],
1921
"exclude": ["node_modules", "**/*.test.ts", "example"]

yarn.lock

+31-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# yarn lockfile v1
33

44

5+
"@types/dateformat@^1.0.1":
6+
version "1.0.1"
7+
resolved "https://registry.yarnpkg.com/@types/dateformat/-/dateformat-1.0.1.tgz#2e5b235c8c55652c4fec284506d2a36fe65fe87e"
8+
integrity sha1-LlsjXIxVZSxP7ChFBtKjb+Zf6H4=
9+
510
"@types/hex-rgba@^1.0.0":
611
version "1.0.0"
712
resolved "https://registry.yarnpkg.com/@types/hex-rgba/-/hex-rgba-1.0.0.tgz#b2aed2aa9fdd6152b7f0ac5e3733b974d4eba35a"
@@ -28,6 +33,14 @@
2833
"@types/prop-types" "*"
2934
csstype "^2.2.0"
3035

36+
"@types/redux-devtools@^3.0.44":
37+
version "3.0.44"
38+
resolved "https://registry.yarnpkg.com/@types/redux-devtools/-/redux-devtools-3.0.44.tgz#2781b87067b8aec3102d4cb4a478feb340df5259"
39+
integrity sha512-FzLlfbx35XjYSY3lboIGwU/8dkwHoeFhxFxVz2KVgExH6eQNJUtFQ3W54tSrn/6mRHKDs/XFleaKhIXjrflTtA==
40+
dependencies:
41+
"@types/react" "*"
42+
redux "^3.6.0"
43+
3144
almost-equal@^1.1.0:
3245
version "1.1.0"
3346
resolved "https://registry.yarnpkg.com/almost-equal/-/almost-equal-1.1.0.tgz#f851c631138757994276aa2efbe8dfa3066cccdd"
@@ -141,6 +154,11 @@ jsondiffpatch@^0.3.11:
141154
chalk "^2.3.0"
142155
diff-match-patch "^1.0.0"
143156

157+
lodash-es@^4.2.1:
158+
version "4.17.11"
159+
resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.11.tgz#145ab4a7ac5c5e52a3531fb4f310255a152b4be0"
160+
integrity sha512-DHb1ub+rMjjrxqlB3H56/6MXtm1lSksDp2rA2cNWjG8mlDUYFhUj3Di2Zn5IwSU87xLv8tNIQ7sSwE/YOX/D/Q==
161+
144162
lodash.curry@^4.0.1:
145163
version "4.1.1"
146164
resolved "https://registry.yarnpkg.com/lodash.curry/-/lodash.curry-4.1.1.tgz#248e36072ede906501d75966200a86dab8b23170"
@@ -151,12 +169,12 @@ lodash.flow@^3.3.0:
151169
resolved "https://registry.yarnpkg.com/lodash.flow/-/lodash.flow-3.5.0.tgz#87bf40292b8cf83e4e8ce1a3ae4209e20071675a"
152170
integrity sha1-h79AKSuM+D5OjOGjrkIJ4gBxZ1o=
153171

154-
lodash@^4.2.0:
172+
lodash@^4.2.0, lodash@^4.2.1:
155173
version "4.17.11"
156174
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d"
157175
integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==
158176

159-
loose-envify@^1.3.1, loose-envify@^1.4.0:
177+
loose-envify@^1.1.0, loose-envify@^1.3.1, loose-envify@^1.4.0:
160178
version "1.4.0"
161179
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
162180
integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
@@ -240,6 +258,16 @@ redux-devtools@^3.4.1:
240258
prop-types "^15.5.7"
241259
redux-devtools-instrument "^1.0.1"
242260

261+
redux@^3.6.0:
262+
version "3.7.2"
263+
resolved "https://registry.yarnpkg.com/redux/-/redux-3.7.2.tgz#06b73123215901d25d065be342eb026bc1c8537b"
264+
integrity sha512-pNqnf9q1hI5HHZRBkj3bAngGZW/JMCmexDlOxw4XagXY2o1327nHH54LoTjiPJ0gizoqPDRqWyX/00g0hD6w+A==
265+
dependencies:
266+
lodash "^4.2.1"
267+
lodash-es "^4.2.1"
268+
loose-envify "^1.1.0"
269+
symbol-observable "^1.0.3"
270+
243271
redux@^4.0.0:
244272
version "4.0.1"
245273
resolved "https://registry.yarnpkg.com/redux/-/redux-4.0.1.tgz#436cae6cc40fbe4727689d7c8fae44808f1bfef5"
@@ -255,7 +283,7 @@ supports-color@^5.3.0:
255283
dependencies:
256284
has-flag "^3.0.0"
257285

258-
symbol-observable@^1.0.2, symbol-observable@^1.2.0:
286+
symbol-observable@^1.0.2, symbol-observable@^1.0.3, symbol-observable@^1.2.0:
259287
version "1.2.0"
260288
resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.2.0.tgz#c22688aed4eab3cdc2dfeacbb561660560a00804"
261289
integrity sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ==

0 commit comments

Comments
 (0)