Skip to content

Commit 232ea2f

Browse files
committed
Upgrade deps
1 parent c5c64da commit 232ea2f

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
"devDependencies": {
2727
"@babel/plugin-transform-modules-commonjs": "^7.24.8",
2828
"@babel/preset-env": "^7.25.4",
29-
"@crowdin/crowdin-api-client": "^1.35.0",
30-
"@types/chrome": "0.0.271",
29+
"@crowdin/crowdin-api-client": "^1.36.0",
30+
"@types/chrome": "0.0.272",
3131
"@types/copy-webpack-plugin": "^10.1.0",
3232
"@types/decompress": "^4.2.7",
3333
"@types/echarts": "^4.9.22",
3434
"@types/generate-json-webpack-plugin": "^0.3.7",
3535
"@types/jest": "^29.5.13",
36-
"@types/node": "^22.5.5",
36+
"@types/node": "^22.7.4",
3737
"@types/psl": "^1.1.3",
3838
"@types/punycode": "^2.1.4",
3939
"@types/webpack": "^5.28.5",
@@ -43,14 +43,14 @@
4343
"copy-webpack-plugin": "^12.0.2",
4444
"css-loader": "^7.1.2",
4545
"decompress": "^4.2.1",
46-
"eslint": "^9.11.0",
46+
"eslint": "^9.11.1",
4747
"filemanager-webpack-plugin": "^8.0.0",
4848
"generate-json-webpack-plugin": "^2.0.0",
4949
"html-webpack-plugin": "^5.6.0",
5050
"jest": "^29.7.0",
5151
"jest-environment-jsdom": "^29.7.0",
5252
"mini-css-extract-plugin": "^2.9.1",
53-
"sass": "^1.79.3",
53+
"sass": "^1.79.4",
5454
"sass-loader": "^16.0.2",
5555
"style-loader": "^4.0.0",
5656
"ts-jest": "^29.2.5",
@@ -60,7 +60,7 @@
6060
"tslib": "^2.7.0",
6161
"typescript": "5.6.2",
6262
"url-loader": "^4.1.1",
63-
"webpack": "^5.94.0",
63+
"webpack": "^5.95.0",
6464
"webpack-bundle-analyzer": "^4.10.2",
6565
"webpack-cli": "^5.1.4"
6666
},
@@ -69,11 +69,11 @@
6969
"@vueuse/core": "^11.1.0",
7070
"countup.js": "^2.8.0",
7171
"echarts": "^5.5.1",
72-
"element-plus": "2.8.3",
72+
"element-plus": "2.8.4",
7373
"js-base64": "^3.7.7",
7474
"punycode": "^2.3.1",
7575
"stream-browserify": "^3.0.0",
76-
"vue": "^3.5.7",
76+
"vue": "^3.5.10",
7777
"vue-router": "^4.4.5"
7878
},
7979
"engines": {

src/database/common/storage-promise.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
* https://opensource.org/licenses/MIT
66
*/
77

8+
/**
9+
* Copy from chrome.storage
10+
*/
11+
type NoInferX<T> = T[][T extends any ? 0 : never]
12+
813
/**
914
* Wrap the storage with promise
1015
*/
@@ -15,7 +20,9 @@ export default class StoragePromise {
1520
this.storage = storage
1621
}
1722

18-
get(keys?: string | string[] | Object | null): Promise<{ [key: string]: any }> {
23+
get<T = { [key: string]: any }>(
24+
keys?: NoInferX<keyof T> | Array<NoInferX<keyof T>> | Partial<NoInferX<T>> | null,
25+
): Promise<{ [key: string]: any }> {
1926
return new Promise(resolve => this.storage.get(keys, resolve))
2027
}
2128

0 commit comments

Comments
 (0)