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

fix jsdoc for version

上级 b29863f8
......@@ -149,14 +149,7 @@ export class Wechaty extends EventEmitter implements Sayable {
public toString() { return `Wechaty<${this.options.puppet}, ${this.profile.name}>`}
/**
* Return version of Wechaty
*
* @param {boolean} [forceNpm=false] - if set to true, will only return the version in package.json.
* otherwise will return git commit hash if .git exists.
* @returns {string} - the version number
* @example
* console.log(Wechaty.instance().version()) // return '#git[af39df]'
* console.log(Wechaty.instance().version(true)) // return '0.7.9'
* @private
*/
public static version(forceNpm = false): string {
if (!forceNpm) {
......@@ -168,8 +161,15 @@ export class Wechaty extends EventEmitter implements Sayable {
return config.npmVersion()
}
/**
* @private
/**
* Return version of Wechaty
*
* @param {boolean} [forceNpm=false] - if set to true, will only return the version in package.json.
* otherwise will return git commit hash if .git exists.
* @returns {string} - the version number
* @example
* console.log(Wechaty.instance().version()) // return '#git[af39df]'
* console.log(Wechaty.instance().version(true)) // return '0.7.9'
*/
public version(forceNpm?) {
return Wechaty.version(forceNpm)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册