Skip to content

Commit 9ed6376

Browse files
authored
Merge pull request #7 from xaos7991/chore/types
Fixed types
2 parents 0ffc5cc + feb01b1 commit 9ed6376

File tree

5 files changed

+27
-7
lines changed

5 files changed

+27
-7
lines changed

packages/website/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"@babel/runtime": "^7.24.4",
3030
"@docusaurus/core": "^3.2.1",
3131
"@docusaurus/plugin-client-redirects": "^3.2.1",
32+
"@docusaurus/plugin-content-blog": "^3.7.0",
3233
"@docusaurus/plugin-pwa": "^3.2.1",
3334
"@docusaurus/preset-classic": "^3.2.1",
3435
"@docusaurus/remark-plugin-npm2yarn": "^3.2.1",
@@ -66,7 +67,7 @@
6667
"@typescript-eslint/utils": "workspace:*",
6768
"copy-webpack-plugin": "^13.0.0",
6869
"cross-fetch": "*",
69-
"history": "^4.9.0",
70+
"history": "^5.3.0",
7071
"make-dir": "*",
7172
"mdast-util-from-markdown": "^2.0.1",
7273
"mdast-util-mdx": "^3.0.0",

packages/website/src/hooks/useHistorySelector.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ export function useHistorySelector<T>(
99
selector: HistorySelector<T>,
1010
getServerSnapshot: () => T,
1111
): T {
12-
const history = useHistory();
12+
// by default H.History<LocationState = unknown>
13+
const history = useHistory() as unknown as H.History;
14+
1315
return useSyncExternalStore(
1416
history.listen,
1517
() => selector(history),

pnpm-lock.yaml

Lines changed: 12 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/scripts/generate-sponsors.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { SponsorData } from 'website/src/components/FinancialContributors/types.ts';
1+
import type { SponsorData } from '@site/src/components/FinancialContributors/types.ts';
22

33
import fetch from 'cross-fetch';
44
import * as fs from 'node:fs';

tsconfig.repo-config-files.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,29 @@
44
"outDir": "./dist",
55
"allowJs": true,
66
"allowImportingTsExtensions": true,
7-
"erasableSyntaxOnly": true
7+
"erasableSyntaxOnly": true,
8+
"paths": {
9+
"@site/*": ["./packages/website/*"]
10+
}
811
},
912
"include": [
1013
"typings",
1114
"tools/**/*.ts",
1215
"tools/**/*.mts",
1316
"eslint.config.mjs",
1417
"knip.ts",
15-
".github/**/*.js"
18+
".github/**/*.js",
19+
"package/website"
1620
],
1721
"references": [
1822
{
1923
"path": "./packages/typescript-eslint/tsconfig.build.json"
2024
},
2125
{
2226
"path": "./tsconfig.spec.json"
27+
},
28+
{
29+
"path": "./packages/website"
2330
}
2431
]
2532
}

0 commit comments

Comments
 (0)