Skip to content

Commit 9997f20

Browse files
committed
fix: typescript types fixes
1 parent ff3ca51 commit 9997f20

File tree

3 files changed

+130
-12
lines changed

3 files changed

+130
-12
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"@typescript-eslint/parser": "^4.15.2",
4444
"babel-eslint": "^10.0.1",
4545
"eslint": "4",
46+
"@types/jest": "^25.2.3",
4647
"eslint-config-xo-lass": "^1.0.3",
4748
"eslint-plugin-react": "^7.11.1",
4849
"eslint-plugin-react-native": "^3.4.0",

tsconfig.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
{
22
"include": ["src"],
3-
"exclude": [
4-
"node_modules",
5-
"config.js"
6-
7-
],
3+
"exclude": ["node_modules", "config.js"],
84
"compilerOptions": {
9-
"lib": [
10-
"es5",
11-
"es6",
12-
"esnext.asynciterable"
13-
],
5+
"lib": ["es5", "es6", "esnext.asynciterable"],
6+
"types": ["react", "jest"],
147
"allowSyntheticDefaultImports": false,
158
"esModuleInterop": false,
169
"jsx": "react",
@@ -21,4 +14,4 @@
2114
"outDir": "./lib",
2215
"declaration": true
2316
}
24-
}
17+
}

yarn.lock

Lines changed: 125 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,16 @@
809809
dependencies:
810810
find-up "^2.1.0"
811811

812+
"@jest/types@^25.5.0":
813+
version "25.5.0"
814+
resolved "https://registry.yarnpkg.com/@jest/types/-/types-25.5.0.tgz#4d6a4793f7b9599fc3680877b856a97dbccf2a9d"
815+
integrity sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==
816+
dependencies:
817+
"@types/istanbul-lib-coverage" "^2.0.0"
818+
"@types/istanbul-reports" "^1.1.1"
819+
"@types/yargs" "^15.0.0"
820+
chalk "^3.0.0"
821+
812822
"@marionebl/sander@^0.6.0":
813823
version "0.6.1"
814824
resolved "https://registry.yarnpkg.com/@marionebl/sander/-/sander-0.6.1.tgz#1958965874f24bc51be48875feb50d642fc41f7b"
@@ -859,6 +869,34 @@
859869
dependencies:
860870
any-observable "^0.3.0"
861871

872+
"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0":
873+
version "2.0.4"
874+
resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz#8467d4b3c087805d63580480890791277ce35c44"
875+
integrity sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==
876+
877+
"@types/istanbul-lib-report@*":
878+
version "3.0.0"
879+
resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#c14c24f18ea8190c118ee7562b7ff99a36552686"
880+
integrity sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==
881+
dependencies:
882+
"@types/istanbul-lib-coverage" "*"
883+
884+
"@types/istanbul-reports@^1.1.1":
885+
version "1.1.2"
886+
resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz#e875cc689e47bce549ec81f3df5e6f6f11cfaeb2"
887+
integrity sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==
888+
dependencies:
889+
"@types/istanbul-lib-coverage" "*"
890+
"@types/istanbul-lib-report" "*"
891+
892+
"@types/jest@^25.2.3":
893+
version "25.2.3"
894+
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-25.2.3.tgz#33d27e4c4716caae4eced355097a47ad363fdcaf"
895+
integrity sha512-JXc1nK/tXHiDhV55dvfzqtmP4S3sy3T3ouV2tkViZgxY/zeUkcpQcQPGRlgF4KmWzWW5oiWYSZwtCB+2RsE4Fw==
896+
dependencies:
897+
jest-diff "^25.2.1"
898+
pretty-format "^25.2.1"
899+
862900
"@types/json5@^0.0.29":
863901
version "0.0.29"
864902
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
@@ -916,6 +954,18 @@
916954
"@types/unist" "*"
917955
"@types/vfile-message" "*"
918956

957+
"@types/yargs-parser@*":
958+
version "21.0.0"
959+
resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.0.tgz#0c60e537fa790f5f9472ed2776c2b71ec117351b"
960+
integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==
961+
962+
"@types/yargs@^15.0.0":
963+
version "15.0.14"
964+
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-15.0.14.tgz#26d821ddb89e70492160b66d10a0eb6df8f6fb06"
965+
integrity sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==
966+
dependencies:
967+
"@types/yargs-parser" "*"
968+
919969
"@typescript-eslint/parser@^4.15.2":
920970
version "4.33.0"
921971
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.33.0.tgz#dfe797570d9694e560528d18eecad86c8c744899"
@@ -1101,6 +1151,11 @@ ansi-regex@^4.1.0:
11011151
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997"
11021152
integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==
11031153

1154+
ansi-regex@^5.0.0:
1155+
version "5.0.1"
1156+
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"
1157+
integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==
1158+
11041159
ansi-styles@^2.2.1:
11051160
version "2.2.1"
11061161
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
@@ -1113,6 +1168,13 @@ ansi-styles@^3.2.0, ansi-styles@^3.2.1:
11131168
dependencies:
11141169
color-convert "^1.9.0"
11151170

1171+
ansi-styles@^4.0.0, ansi-styles@^4.1.0:
1172+
version "4.3.0"
1173+
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937"
1174+
integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==
1175+
dependencies:
1176+
color-convert "^2.0.1"
1177+
11161178
[email protected], ansi-wrap@^0.1.0:
11171179
version "0.1.0"
11181180
resolved "https://registry.yarnpkg.com/ansi-wrap/-/ansi-wrap-0.1.0.tgz#a82250ddb0015e9a27ca82e82ea603bbfa45efaf"
@@ -1735,6 +1797,14 @@ chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.1, chalk@^2.4.1, chalk@^2.4
17351797
escape-string-regexp "^1.0.5"
17361798
supports-color "^5.3.0"
17371799

1800+
chalk@^3.0.0:
1801+
version "3.0.0"
1802+
resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4"
1803+
integrity sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==
1804+
dependencies:
1805+
ansi-styles "^4.1.0"
1806+
supports-color "^7.1.0"
1807+
17381808
character-entities-html4@^1.0.0:
17391809
version "1.1.4"
17401810
resolved "https://registry.yarnpkg.com/character-entities-html4/-/character-entities-html4-1.1.4.tgz#0e64b0a3753ddbf1fdc044c5fd01d0199a02e125"
@@ -1891,11 +1961,23 @@ color-convert@^1.9.0:
18911961
dependencies:
18921962
color-name "1.1.3"
18931963

1964+
color-convert@^2.0.1:
1965+
version "2.0.1"
1966+
resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3"
1967+
integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==
1968+
dependencies:
1969+
color-name "~1.1.4"
1970+
18941971
18951972
version "1.1.3"
18961973
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
18971974
integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=
18981975

1976+
color-name@~1.1.4:
1977+
version "1.1.4"
1978+
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
1979+
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
1980+
18991981
color-support@^1.1.3:
19001982
version "1.1.3"
19011983
resolved "https://registry.yarnpkg.com/color-support/-/color-support-1.1.3.tgz#93834379a1cc9a0c61f82f52f0d04322251bd5a2"
@@ -2254,6 +2336,11 @@ detect-newline@^2.1.0:
22542336
resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2"
22552337
integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I=
22562338

2339+
diff-sequences@^25.2.6:
2340+
version "25.2.6"
2341+
resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-25.2.6.tgz#5f467c00edd35352b7bca46d7927d60e687a76dd"
2342+
integrity sha512-Hq8o7+6GaZeoFjtpgvRBUknSXNeJiCx7V9Fr94ZMljNiCr9n9L8H8aJqgWOQiDDGdyn29fRNcDdRVJ5fdyihfg==
2343+
22572344
22582345
version "2.0.0"
22592346
resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-2.0.0.tgz#0b205d2b6aef98238ca286598a8204d29d0a0034"
@@ -3525,6 +3612,11 @@ has-flag@^3.0.0:
35253612
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd"
35263613
integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0=
35273614

3615+
has-flag@^4.0.0:
3616+
version "4.0.0"
3617+
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"
3618+
integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==
3619+
35283620
has-symbols@^1.0.1, has-symbols@^1.0.2:
35293621
version "1.0.2"
35303622
resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.2.tgz#165d3070c00309752a1236a479331e3ac56f1423"
@@ -4258,6 +4350,16 @@ isomorphic-fetch@^2.1.1:
42584350
node-fetch "^1.0.1"
42594351
whatwg-fetch ">=0.10.0"
42604352

4353+
jest-diff@^25.2.1:
4354+
version "25.5.0"
4355+
resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-25.5.0.tgz#1dd26ed64f96667c068cef026b677dfa01afcfa9"
4356+
integrity sha512-z1kygetuPiREYdNIumRpAHY6RXiGmp70YHptjdaxTWGmA085W3iCnXNx0DhflK3vwrKmrRWyY1wUpkPMVxMK7A==
4357+
dependencies:
4358+
chalk "^3.0.0"
4359+
diff-sequences "^25.2.6"
4360+
jest-get-type "^25.2.6"
4361+
pretty-format "^25.5.0"
4362+
42614363
[email protected], jest-docblock@^23.2.0:
42624364
version "23.2.0"
42634365
resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-23.2.0.tgz#f085e1f18548d99fdd69b20207e6fd55d91383a7"
@@ -4275,6 +4377,11 @@ jest-get-type@^22.1.0:
42754377
resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-22.4.3.tgz#e3a8504d8479342dd4420236b322869f18900ce4"
42764378
integrity sha512-/jsz0Y+V29w1chdXVygEKSz2nBoHoYqNShPe+QgxSNjAuP1i8+k4LbQNrfoliKej0P45sivkSCh7yiD6ubHS3w==
42774379

4380+
jest-get-type@^25.2.6:
4381+
version "25.2.6"
4382+
resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-25.2.6.tgz#0b0a32fab8908b44d508be81681487dbabb8d877"
4383+
integrity sha512-DxjtyzOHjObRM+sM1knti6or+eOgcGU4xVSb2HNP1TqO4ahsT+rqZg+nyqHWJSvWgKC5cG3QjGFBqxLghiF/Ig==
4384+
42784385
42794386
version "23.5.0"
42804387
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-23.5.0.tgz#d4ca618188bd38caa6cb20349ce6610e194a8065"
@@ -5986,6 +6093,16 @@ pretty-format@^23.4.1, pretty-format@^23.6.0:
59866093
ansi-regex "^3.0.0"
59876094
ansi-styles "^3.2.0"
59886095

6096+
pretty-format@^25.2.1, pretty-format@^25.5.0:
6097+
version "25.5.0"
6098+
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-25.5.0.tgz#7873c1d774f682c34b8d48b6743a2bf2ac55791a"
6099+
integrity sha512-kbo/kq2LQ/A/is0PQwsEHM7Ca6//bGPPvU6UnsdDRSKTWxT/ru/xb88v4BJf6a69H+uTytOEsTusT9ksd/1iWQ==
6100+
dependencies:
6101+
"@jest/types" "^25.5.0"
6102+
ansi-regex "^5.0.0"
6103+
ansi-styles "^4.0.0"
6104+
react-is "^16.12.0"
6105+
59896106
pretty-format@^4.2.1:
59906107
version "4.3.1"
59916108
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-4.3.1.tgz#530be5c42b3c05b36414a7a2a4337aa80acd0e8d"
@@ -6124,7 +6241,7 @@ react-devtools-core@^3.4.2:
61246241
shell-quote "^1.6.1"
61256242
ws "^3.3.1"
61266243

6127-
react-is@^16.13.1:
6244+
react-is@^16.12.0, react-is@^16.13.1:
61286245
version "16.13.1"
61296246
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
61306247
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
@@ -7936,6 +8053,13 @@ supports-color@^5.2.0, supports-color@^5.3.0:
79368053
dependencies:
79378054
has-flag "^3.0.0"
79388055

8056+
supports-color@^7.1.0:
8057+
version "7.2.0"
8058+
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da"
8059+
integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==
8060+
dependencies:
8061+
has-flag "^4.0.0"
8062+
79398063
supports-preserve-symlinks-flag@^1.0.0:
79408064
version "1.0.0"
79418065
resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09"

0 commit comments

Comments
 (0)