Skip to content

Commit e67a30f

Browse files
authored
fix(hooks): add and set up TypeScript (#421)
1 parent e8a579a commit e67a30f

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

react-instantsearch-hooks/query-suggestions/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
},
1919
"devDependencies": {
2020
"@types/react": "17.0.45",
21-
"parcel": "2.5.0"
21+
"parcel": "2.5.0",
22+
"typescript": "4.8.4"
2223
}
2324
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ESNext",
4+
"module": "ESNext",
5+
"esModuleInterop": true,
6+
"forceConsistentCasingInFileNames": true,
7+
"strict": true,
8+
"skipLibCheck": true,
9+
"noEmit": true,
10+
"jsx": "react-jsx"
11+
},
12+
"include": ["src/*"]
13+
}

react-instantsearch-hooks/query-suggestions/yarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -1688,6 +1688,11 @@ type-fest@^0.20.2:
16881688
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4"
16891689
integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==
16901690

1691+
1692+
version "4.8.4"
1693+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6"
1694+
integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==
1695+
16911696
update-browserslist-db@^1.0.0:
16921697
version "1.0.4"
16931698
resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.4.tgz#dbfc5a789caa26b1db8990796c2c8ebbce304824"

0 commit comments

Comments
 (0)