Skip to content

Commit

Permalink
feat: 修复worker的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Adherentman committed Jun 21, 2019
1 parent 4516294 commit 12d27d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 2019-06-21

- 修复`Worker`Api的问题

## 2019-06-13

- 解决ISSUE[Need not to declare `require` function for d.ts?](https://github.com/Adherentman/Typescript-wxApi.d.ts/issues/12)
Expand Down
5 changes: 3 additions & 2 deletions wx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type ZeroParamVoidFunc = () => void;
interface ReturnCallBack {
(res: ZeroParamVoidFunc): void;
}

interface createLiveObj extends WxApiCallback {}

// App Types
Expand Down Expand Up @@ -3121,8 +3122,8 @@ interface MultithreadingAPIs {
}

interface workerAPIs {
postMessage: any;
onMessage: ZeroParamVoidFunc;
postMessage: ({msg: string}) => void;
onMessage: any;
terminate: ZeroParamVoidFunc;
}

Expand Down

0 comments on commit 12d27d7

Please sign in to comment.