diff --git a/packages/common/utils.ts b/packages/common/utils.ts index 59fa35c7..404a23b5 100644 --- a/packages/common/utils.ts +++ b/packages/common/utils.ts @@ -21,7 +21,7 @@ export function nextTick(fn: Function) { }, 1000 / 30); } -let systemInfo: WechatMiniprogram.GetSystemInfoSuccessCallbackResult = null; +let systemInfo: WechatMiniprogram.GetSystemInfoSyncResult = null; export function getSystemInfoSync() { if (systemInfo == null) { systemInfo = wx.getSystemInfoSync(); diff --git a/tsconfig.json b/tsconfig.json index cb48e111..1077c4e9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,8 @@ "types": ["miniprogram-api-typings"], "paths": { "definitions/*": ["./packages/definitions/*"] - } + }, + "skipLibCheck": true }, "include": ["packages/**/*"] }