From e31bb8ad665c64d53ae690aa21a35579a42e8c08 Mon Sep 17 00:00:00 2001 From: kira1928 Date: Thu, 14 Mar 2019 11:33:16 +0800 Subject: [PATCH] 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; /**