提交 0730e83b 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

Make the `id` property jsdoc-able (#1486)

上级 df88ad7a
......@@ -264,15 +264,19 @@ export class Contact extends Accessory implements Sayable {
return this.puppet.contactPayloadCache(this.id)
}
public readonly id: string // Contact Id
/**
* @private
*/
constructor(
public readonly id: string,
id: string,
) {
super()
log.silly('Contact', `constructor(${id})`)
this.id = id
// tslint:disable-next-line:variable-name
const MyClass = instanceToClass(this, Contact)
......
......@@ -265,15 +265,19 @@ export class Room extends Accessory implements Sayable {
return readyPayload
}
public readonly id: string // Room Id
/**
* @private
*/
constructor(
public readonly id: string,
id: string,
) {
super()
log.silly('Room', `constructor(${id})`)
this.id = id
// tslint:disable-next-line:variable-name
const MyClass = instanceToClass(this, Room)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册