Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix(wechat): 修复 API 类型
Browse files Browse the repository at this point in the history
close #1389
  • Loading branch information
yesmeck committed Nov 28, 2020
1 parent 13638a8 commit 087a581
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion packages/remax-ali/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
},
"include": [
"src/**/*",
"typings/**/*",
"../../node_modules/mini-types/types/app.d.ts",
"../../node_modules/mini-types/types/page.d.ts",
"../../node_modules/mini-types/types/api/index.d.ts"
Expand Down
2 changes: 0 additions & 2 deletions packages/remax-ali/typings/index.d.ts

This file was deleted.

4 changes: 1 addition & 3 deletions packages/remax-wechat/src/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { promisify } from '@remax/framework-shared';

export const getAppStub = getApp;

declare const wx: any;
declare const wx: WechatMiniprogram.Wx;

export const canIUse = wx.canIUse;
export const base64ToArrayBuffer = wx.base64ToArrayBuffer;
Expand Down
5 changes: 4 additions & 1 deletion packages/remax-wechat/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@
"types": ["@types/jest", "@types/node"],
"downlevelIteration": true
},
"include": ["src/**/*", "typings/**/*", "../../node_modules/miniprogram-api-typings/types/wx/lib.wx.api.d.ts"]
"include": [
"src/**/*",
"../../node_modules/miniprogram-api-typings/types/wx/lib.wx.api.d.ts"
],
}
2 changes: 0 additions & 2 deletions packages/remax-wechat/typings/index.d.ts

This file was deleted.

1 comment on commit 087a581

@vercel
Copy link

@vercel vercel bot commented on 087a581 Nov 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.