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

doc

上级 edb46732
......@@ -47,7 +47,7 @@ Wechaty.instance() // Singleton
Return version of Wechaty
**Kind**: instance method of <code>[Wechaty](#Wechaty)</code>
**Returns**: <code>string</code> - version - number
**Returns**: <code>string</code> - - the version number
| Param | Type | Default | Description |
| --- | --- | --- | --- |
......
......@@ -133,9 +133,10 @@ export class Wechaty extends EventEmitter implements Sayable {
/**
* 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} version - number
* @returns {string} - the version number
* @example
* console.log(Wechaty.instance().version())
* // '#git[af39df]'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册