- 将 `headers-polyfill.js` 重命名为 `headers-polyfill.ts` 以统一项目技术栈 - 在重命名的文件顶部添加 `// @ts-nocheck` 指令以暂时绕过类型检查 - 在 `rpc-client.ts` 中导入新增的 polyfill 文件以确保功能完整性
@@ -1,3 +1,5 @@
+// @ts-nocheck
+
class Headers {
constructor(init = {}) {
this._headers = {};
@@ -1,6 +1,7 @@
import Taro from '@tarojs/taro'
import { hc } from 'hono/client'
import { ResponsePolyfill } from './response-polyfill'
+import './headers-polyfill'
// 刷新token的函数
let isRefreshing = false