From e31bb8ad665c64d53ae690aa21a35579a42e8c08 Mon Sep 17 00:00:00 2001 From: kira1928 Date: Thu, 14 Mar 2019 11:33:16 +0800 Subject: [PATCH 1/3] Update index.d.ts Add the optional parameter `argsDescription` to description() function --- typings/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 312b056de..efea94f18 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -226,9 +226,10 @@ declare namespace local { * Set the description to `str`. * * @param {string} str + * @param {{[key: string]: any}} argsDescription * @return {(Command | string)} */ - description(str: string): Command; + description(str: string, argsDescription?: {[key: string]: any}): Command; description(): string; /** From a67994996a07cd871eb56147bd21a58aaa93ff1d Mon Sep 17 00:00:00 2001 From: kira1928 Date: Thu, 14 Mar 2019 22:45:08 +0800 Subject: [PATCH 2/3] Refine variable name. Use strict type definition instead of --- typings/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index efea94f18..4c5a8dc5a 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -226,7 +226,7 @@ declare namespace local { * Set the description to `str`. * * @param {string} str - * @param {{[key: string]: any}} argsDescription + * @param {{[argName: string]: string}} argsDescription * @return {(Command | string)} */ description(str: string, argsDescription?: {[key: string]: any}): Command; From a4691373f301a6f3060078899eab4fd8d1a8fa8c Mon Sep 17 00:00:00 2001 From: kira1928 Date: Thu, 14 Mar 2019 22:50:56 +0800 Subject: [PATCH 3/3] some more fix. --- typings/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 4c5a8dc5a..bcda2771e 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -229,7 +229,7 @@ declare namespace local { * @param {{[argName: string]: string}} argsDescription * @return {(Command | string)} */ - description(str: string, argsDescription?: {[key: string]: any}): Command; + description(str: string, argsDescription?: {[argName: string]: string}): Command; description(): string; /**