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

use @hideconstructor instead of @private (#1872)

上级 39b76893
......@@ -260,7 +260,7 @@ export class Contact extends Accessory implements Sayable {
protected payload?: ContactPayload
/**
* @private
* @hideconstructor
*/
constructor (
public readonly id: string,
......
......@@ -4,6 +4,9 @@ export class Favorite {
return []
}
/*
* @hideconstructor
*/
constructor () {
//
}
......
......@@ -125,6 +125,9 @@ export class Friendship extends Accessory implements Acceptable {
*/
protected payload?: FriendshipPayload
/*
* @hideconstructor
*/
constructor (
public readonly id: string,
) {
......
......@@ -193,7 +193,7 @@ export class Message extends Accessory implements Sayable {
protected payload?: MessagePayload
/**
* @private
* @hideconstructor
*/
constructor (
public readonly id: string,
......
......@@ -29,6 +29,9 @@ export class MiniProgram {
return new MiniProgram(payload)
}
/*
* @hideconstructor
*/
constructor (
public readonly payload: MiniProgramPayload,
) {
......
......@@ -14,6 +14,9 @@ export class Moment {
return []
}
/*
* @hideconstructor
*/
constructor () {
//
}
......
export class Money {
/*
* @hideconstructor
*/
constructor () {
//
}
......
......@@ -50,7 +50,7 @@ export class RoomInvitation extends Accessory implements Acceptable {
}
/**
* @ignore
* @hideconstructor
* Instance Properties
*
*/
......
......@@ -62,8 +62,6 @@ export type RoomEventName = keyof typeof ROOM_EVENT_DICT
*
* [Examples/Room-Bot]{@link https://github.com/Chatie/wechaty/blob/1523c5e02be46ebe2cc172a744b2fbe53351540e/examples/room-bot.ts}
*
* @property {string} id - Get Room id.
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table)
*/
export class Room extends Accessory implements Sayable {
......@@ -268,7 +266,9 @@ export class Room extends Accessory implements Sayable {
protected payload?: RoomPayload
/**
* @private
* @hideconstructor
* @property {string} id - Room id.
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table)
*/
constructor (
public readonly id: string,
......
......@@ -27,6 +27,9 @@ export class UrlLink {
return new UrlLink(payload)
}
/*
* @hideconstructor
*/
constructor (
public readonly payload: UrlLinkPayload,
) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册