From 1ef3de4e4b51fd06b21da7c36e99fcdea53609b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Huan=20LI=20=28=E6=9D=8E=E5=8D=93=E6=A1=93=29?= Date: Sat, 6 Jun 2020 23:02:06 +0800 Subject: [PATCH] fix typo --- .vscode/settings.json | 1 + src/user/contact.ts | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 717600a1..9bf0a558 100755 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -84,6 +84,7 @@ "pagepath", "qrcode", "removee", + "ruirui", "thumbnailurl", "wechat", "weixin", diff --git a/src/user/contact.ts b/src/user/contact.ts index 2ee18789..b9d0c10a 100644 --- a/src/user/contact.ts +++ b/src/user/contact.ts @@ -100,7 +100,7 @@ export class Contact extends Accessory implements Sayable { } if (this === Contact) { throw new Error( - 'The lgobal Contact class can not be used directly!' + 'The global Contact class can not be used directly!' + 'See: https://github.com/wechaty/wechaty/issues/1217', ) } @@ -203,7 +203,7 @@ export class Contact extends Accessory implements Sayable { * const bot = new Wechaty() * await bot.start() * const contactList = await bot.Contact.findAll() // get the contact list of the bot - * const contactList = await bot.Contact.findAll({ name: 'ruirui' }) // find allof the contacts whose name is 'ruirui' + * const contactList = await bot.Contact.findAll({ name: 'ruirui' }) // find all of the contacts whose name is 'ruirui' * const contactList = await bot.Contact.findAll({ alias: 'lijiarui' }) // find all of the contacts whose alias is 'lijiarui' */ public static async findAll ( @@ -294,13 +294,13 @@ export class Contact extends Accessory implements Sayable { if (MyClass === Contact) { throw new Error( - 'Contact class can not be instanciated directly!' + 'Contact class can not be instantiated directly!' + 'See: https://github.com/wechaty/wechaty/issues/1217', ) } if (!this.puppet) { - throw new Error('Contact class can not be instanciated without a puppet!') + throw new Error('Contact class can not be instantiated without a puppet!') } } @@ -562,7 +562,7 @@ export class Contact extends Accessory implements Sayable { */ /** * @description - * Check if it's a offical account, should use {@link Contact#type} instead + * Check if it's a official account, should use {@link Contact#type} instead * @deprecated * @ignore */ @@ -718,7 +718,7 @@ export class Contact extends Accessory implements Sayable { } /** - * Force reload data for Contact, Sync data from lowlevel API again. + * Force reload data for Contact, Sync data from low-level API again. * * @returns {Promise} * @example @@ -732,7 +732,7 @@ export class Contact extends Accessory implements Sayable { * `ready()` is For FrameWork ONLY! * * Please not to use `ready()` at the user land. - * If you want to sync data, uyse `sync()` instead. + * If you want to sync data, use `sync()` instead. * * @ignore */ -- GitLab