Wechaty: JSDoc publishing problem: missed the Room class

Created on 5 Nov 2019  路  1Comment  路  Source: wechaty/wechaty

The JSDoc from https://github.com/Chatie/wechaty/blob/master/src/user/room.ts#L422-L430 has not been published properly at https://chatie.io/wechaty/#Room+say

There might be other classes missed as well, which need to be invested & fixed.

bug

Most helpful comment

The Problem

If we use a @private to document a constructor of the class, then this class will not be documented by the JSDoc.

Like the following code:

https://github.com/Chatie/wechaty/blob/df0aec498b3f7c4145082aff9403f27bd43ee4bd/src/user/room.ts#L270-L273

The Solution

In order to keep the constructor out of the document, we need to use @hideconstructor.

See: https://stackoverflow.com/a/52566418/1123955

>All comments

The Problem

If we use a @private to document a constructor of the class, then this class will not be documented by the JSDoc.

Like the following code:

https://github.com/Chatie/wechaty/blob/df0aec498b3f7c4145082aff9403f27bd43ee4bd/src/user/room.ts#L270-L273

The Solution

In order to keep the constructor out of the document, we need to use @hideconstructor.

See: https://stackoverflow.com/a/52566418/1123955

Was this page helpful?
0 / 5 - 0 ratings