Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改socket连接返回值 正确的返回值应为SocketTask 而不是json属性 #2022

Merged
merged 4 commits into from
Jan 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions packages/taro/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -970,12 +970,8 @@ declare namespace Taro {
function downloadFile(OBJECT: downloadFile.Param): downloadFile.DownloadTask

namespace connectSocket {
type Promised = {
/**
* 返回一个SocketTask
*/
socketTask: SocketTask
}
type Promised = SocketTask;

type Param = {
/**
* 开发者服务器接口地址,必须是 wss 协议,且域名必须是后台配置的合法域名
Expand Down