Skip to content

Commit 8efba00

Browse files
fix(web): use any for the stats types because for some alien reason the types not showing up
1 parent 144a179 commit 8efba00

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

apps/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"babel-plugin-react-compiler": "^19.1.0-rc.2",
2828
"class-variance-authority": "^0.7.1",
2929
"clsx": "^2.1.1",
30-
"convex": "^1.25.4",
30+
"convex": "^1.27.3",
3131
"convex-helpers": "^0.1.104",
3232
"culori": "^4.0.2",
3333
"date-fns": "^4.1.0",

apps/web/src/app/(home)/_components/stats-section.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ export default function StatsSection({
2323
lastUpdated: string | null;
2424
};
2525
}) {
26-
const githubRepo = useQuery(api.stats.getGithubRepo, {
26+
27+
// no idea why there are no types
28+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
29+
const githubRepo = useQuery((api as any).stats.getGithubRepo, {
2730
name: "AmanVarshney01/create-better-t-stack",
2831
});
29-
const npmPackages = useQuery(api.stats.getNpmPackages, {
32+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
33+
const npmPackages = useQuery((api as any).stats.getNpmPackages, {
3034
names: ["create-better-t-stack"],
3135
});
3236

@@ -188,7 +192,7 @@ export default function StatsSection({
188192
<span className="font-mono text-foreground text-sm">
189193
{npmPackages?.dayOfWeekAverages
190194
? Math.round(
191-
npmPackages.dayOfWeekAverages.reduce((a, b) => a + b, 0) /
195+
npmPackages.dayOfWeekAverages.reduce((a: number, b: number) => a + b, 0) /
192196
7,
193197
)
194198
: "—"}

bun.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"babel-plugin-react-compiler": "^19.1.0-rc.2",
6767
"class-variance-authority": "^0.7.1",
6868
"clsx": "^2.1.1",
69-
"convex": "^1.25.4",
69+
"convex": "^1.27.3",
7070
"convex-helpers": "^0.1.104",
7171
"culori": "^4.0.2",
7272
"date-fns": "^4.1.0",
@@ -116,7 +116,7 @@
116116
"version": "1.0.0",
117117
"dependencies": {
118118
"@erquhart/convex-oss-stats": "^0.8.1",
119-
"convex": "^1.25.4",
119+
"convex": "^1.27.3",
120120
"convex-helpers": "^0.1.104",
121121
},
122122
"devDependencies": {

packages/backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"dependencies": {
1717
"@erquhart/convex-oss-stats": "^0.8.1",
18-
"convex": "^1.25.4",
18+
"convex": "^1.27.3",
1919
"convex-helpers": "^0.1.104"
2020
}
2121
}

0 commit comments

Comments
 (0)