Chore: update dependencies

This commit is contained in:
Dreamacro 2022-11-15 14:01:16 +08:00
parent 23db9edd09
commit af47fa3b48
3 changed files with 1116 additions and 1023 deletions

View File

@ -26,51 +26,51 @@
},
"devDependencies": {
"@types/lodash-es": "^4.17.6",
"@types/node": "^18.7.18",
"@types/react": "^18.0.20",
"@types/react-dom": "^18.0.6",
"@types/node": "^18.11.9",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9",
"@types/react-virtualized-auto-sizer": "^1.0.1",
"@types/react-window": "^1.8.5",
"@typescript-eslint/eslint-plugin": "^5.37.0",
"@typescript-eslint/parser": "^5.37.0",
"@vitejs/plugin-react": "^2.1.0",
"eslint": "^8.23.1",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"@vitejs/plugin-react": "^2.2.0",
"eslint": "^8.27.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-standard-with-typescript": "^23.0.0",
"eslint-import-resolver-typescript": "^3.5.1",
"eslint-import-resolver-typescript": "^3.5.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-n": "^15.2.5",
"eslint-plugin-promise": "^6.0.1",
"eslint-plugin-react": "^7.31.8",
"eslint-plugin-n": "^15.5.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-tailwindcss": "^3.6.2",
"sass": "^1.54.9",
"type-fest": "^2.19.0",
"typescript": "^4.8.3",
"vite": "^3.1.1",
"vite-plugin-pwa": "^0.12.7",
"eslint-plugin-tailwindcss": "^3.7.0",
"sass": "^1.56.1",
"type-fest": "^3.2.0",
"typescript": "^4.8.4",
"vite": "^3.2.3",
"vite-plugin-pwa": "^0.13.3",
"vite-plugin-windicss": "^1.8.8",
"vite-tsconfig-paths": "^3.5.0",
"vite-tsconfig-paths": "^3.5.2",
"windicss": "^3.5.6"
},
"dependencies": {
"@react-hookz/web": "^15.1.0",
"@tanstack/react-table": "^8.5.13",
"axios": "^0.27.2",
"@react-hookz/web": "^19.1.0",
"@tanstack/react-table": "^8.5.28",
"axios": "^1.1.3",
"classnames": "^2.3.2",
"dayjs": "^1.11.5",
"dayjs": "^1.11.6",
"eventemitter3": "^4.0.7",
"immer": "^9.0.15",
"jotai": "^1.8.3",
"immer": "^9.0.16",
"jotai": "^1.9.2",
"lodash-es": "^4.17.21",
"neverthrow": "^5.0.0",
"neverthrow": "^5.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.4.0",
"react-router-dom": "^6.4.3",
"react-virtualized-auto-sizer": "^1.0.7",
"react-window": "^1.8.7",
"react-window": "^1.8.8",
"swr": "^1.3.0",
"use-immer": "^0.7.0"
}

2081
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -32,8 +32,8 @@ export function useI18n () {
const translation = useCallback(
function <Namespace extends keyof typeof Language['en_US']>(namespace: Namespace) {
function t<Path extends string> (path: Path): Get<typeof Language['en_US'][Namespace], Path> {
return get(Language[lang][namespace], path)
function t<Path extends string> (path: Path) {
return get(Language[lang][namespace], path) as unknown as Get<typeof Language['en_US'][Namespace], Path>
}
return { t }
},