Skip to content

Commit 3d2b9c9

Browse files
committed
优化
1 parent c26819b commit 3d2b9c9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -319,20 +319,20 @@ export class IpcRendererWorker {
319319

320320
/**
321321
* 向进程发送用户退出消息
322-
* @param params 退出的参数
322+
* @param message 退出的消息,用以给process做一些处理,可以是null
323323
* @returns promise process收到消息后给renderer的回调promise
324324
*/
325-
exit(params: any = null): Promise<any> {
326-
return this.sendPromise(ExtensionRendererMessageTopic.USER_EXIT, params);
325+
exit(message: any = null): Promise<any> {
326+
return this.sendPromise(ExtensionRendererMessageTopic.USER_EXIT, message);
327327
}
328328

329329
/**
330330
* 向进程发送获取属性的消息
331-
* @param params 获取属性需要的参数,可以为null
331+
* @param message 获取属性需要的消息,用以给process做一些处理,可以是null
332332
* @returns promise process收到消息后给renderer的回调promise
333333
*/
334-
getProperty(params: any = null): Promise<any> {
335-
return this.sendPromise(ExtensionRendererMessageTopic.GET_PROPERTY, params);
334+
getProperty(message: any = null): Promise<any> {
335+
return this.sendPromise(ExtensionRendererMessageTopic.GET_PROPERTY, message);
336336
}
337337

338338
}

0 commit comments

Comments
 (0)