-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add api to explain which belongs to web API, which belongs to padchat API, which belongs… #1486
Conversation
This PR is good. I have another idea to make it clear: show them inside a table. Puppet Compatible Table
If you like it too, I'd like to put it in Wechaty/Wiki/Puppet. |
I feel the table is more clear. It seems there's a better way to just add the note in the JSDoc to notify reader that "This function is depending on the Puppet Implementation" with a link to the comparison table in Wiki, instead of including all the information in the JSDoc. |
sure, I will have a try then. I suggest you add to the wiki in a proper position you like and give me the link. In order to change the link(e.g. 404 error) in jsdoc. And then I will complete the full compatible functions in wiki and change jsdoc. How do you think about this? |
I'd like to suggest to use the Puppet page at https://github.com/Chatie/wechaty/wiki/Puppet |
At last, the final question: I cannot find how to get contact id and how to get room id in Our doc didn't tell developers how to get the unique id, but I think the doc should add the API to tell the user how to get a unique id for contact and room. |
Please add JsDoc for One more thing: I saw you add a table to the Wiki, but I do not think the IosCat project should be labeled as |
Yes, this is what I want to ask.I cannot find the Contact.id function or id parameter, so I have no idea where to add. |
They are properties instead of methods. |
Yes, here is Contact class, and I cannot find where is the property export class Contact extends Accessory implements Sayable {
// tslint:disable-next-line:variable-name
public static Type = ContactType
// tslint:disable-next-line:variable-name
public static Gender = ContactGender
protected static [POOL]: Map<string, Contact>
protected static get pool() {
return this[POOL]
}
protected static set pool(newPool: Map<string, Contact>) {
if (this === Contact) {
throw new Error(
'The global Contact class can not be used directly!'
+ 'See: https://github.com/Chatie/wechaty/issues/1217',
)
}
this[POOL] = newPool
} |
Please see my last commit, it can help you to find the |
Thanks!
I cannot generate the right doc. So I suggest to add a function |
Why can you not generate the right doc? Does that mean the JsDoc not support to document the class properties? |
Well, I'm not sure, maybe just I have no idea, or maybe they are not compatible with typescript, I have read their official doc and tried related solutions on StackOverflow, but failed... Actually, they officially support the property. |
Glad to hear that JsDoc support the property. Hope you can be compatible with JsDoc soon. |
Good job. Can I merge this PR if there is no other qiestion we need to discuss on it? BTW: please do not blame others when you have very limit knowledge of the problem. |
Yes, you can. |
wechaty/getting-started#35
juzibot/wechaty-doc#26
Also, I have a question:
I cannot find how to get contact id and how to get room id in
contact.ts
androom.ts
, even though I knowContact.id
andRoom.id
.Our doc didn't tell developers how to get the unique id, but I think the doc should add the API to tell the user how to get a unique id for contact and room.