Skip to content

Commit

Permalink
feat: 修复类型问题
Browse files Browse the repository at this point in the history
  • Loading branch information
calandnong committed Jun 30, 2024
1 parent d10bc22 commit 8c48ba2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"prettier.enable": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.tabSize": 2,
"cSpell.words": [
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/xhr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ XHROtherConfig,
}

// 设置自定义请求头
function isFormData(val: any): val is FormData {
function isFormData(val: unknown): val is FormData {
return typeof val !== 'undefined' && val instanceof FormData;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/shared/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const toString = Object.prototype.toString;

export function isPlainObject(val: any): val is Object {
export function isPlainObject(val: unknown): val is Object {
return toString.call(val) === '[object Object]';
}

0 comments on commit 8c48ba2

Please sign in to comment.