Skip to content

Fixed types #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@babel/runtime": "^7.24.4",
"@docusaurus/core": "^3.2.1",
"@docusaurus/plugin-client-redirects": "^3.2.1",
"@docusaurus/plugin-content-blog": "^3.7.0",
"@docusaurus/plugin-pwa": "^3.2.1",
"@docusaurus/preset-classic": "^3.2.1",
"@docusaurus/remark-plugin-npm2yarn": "^3.2.1",
Expand Down Expand Up @@ -66,7 +67,7 @@
"@typescript-eslint/utils": "workspace:*",
"copy-webpack-plugin": "^13.0.0",
"cross-fetch": "*",
"history": "^4.9.0",
"history": "^5.3.0",
"make-dir": "*",
"mdast-util-from-markdown": "^2.0.1",
"mdast-util-mdx": "^3.0.0",
Expand Down
4 changes: 3 additions & 1 deletion packages/website/src/hooks/useHistorySelector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export function useHistorySelector<T>(
selector: HistorySelector<T>,
getServerSnapshot: () => T,
): T {
const history = useHistory();
// by default H.History<LocationState = unknown>
const history = useHistory() as unknown as H.History;

return useSyncExternalStore(
history.listen,
() => selector(history),
Expand Down
14 changes: 12 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tools/scripts/generate-sponsors.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { SponsorData } from 'website/src/components/FinancialContributors/types.ts';
import type { SponsorData } from '@site/src/components/FinancialContributors/types.ts';

import fetch from 'cross-fetch';
import * as fs from 'node:fs';
Expand Down
11 changes: 9 additions & 2 deletions tsconfig.repo-config-files.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,29 @@
"outDir": "./dist",
"allowJs": true,
"allowImportingTsExtensions": true,
"erasableSyntaxOnly": true
"erasableSyntaxOnly": true,
"paths": {
"@site/*": ["./packages/website/*"]
}
},
"include": [
"typings",
"tools/**/*.ts",
"tools/**/*.mts",
"eslint.config.mjs",
"knip.ts",
".github/**/*.js"
".github/**/*.js",
"package/website"
],
"references": [
{
"path": "./packages/typescript-eslint/tsconfig.build.json"
},
{
"path": "./tsconfig.spec.json"
},
{
"path": "./packages/website"
}
]
}