未验证 提交 066ab09b 编写于 作者: S Simon Liang 提交者: GitHub

Update json-rpc-peer.d.ts

上级 eda2a07b
......@@ -10,7 +10,7 @@ declare module 'json-rpc-peer' {
export * from 'json-rpc-protocol'
declare module 'json-rpc-peer' {
module 'json-rpc-peer' {
export class Peer extends EventEmitter implements NodeJS.WritableStream {
constructor(onmessage?: (message: JsonRpcPayload, data: any) => Promise<any>)
......@@ -58,8 +58,6 @@ declare module 'json-rpc-peer' {
end(str: string, encoding?: string, cb?: () => void): void
}
export default Peer
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册