From d8765f8b5d45c543d169023f94e12ec00424f284 Mon Sep 17 00:00:00 2001 From: King Wang Date: Fri, 10 Nov 2017 15:37:20 +0800 Subject: [PATCH 1/2] Update index.d.ts SetOption value should be any (maybe boolean, number ...) --- types/showdown/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/showdown/index.d.ts b/types/showdown/index.d.ts index 62cecfda30..cb3b9ae088 100644 --- a/types/showdown/index.d.ts +++ b/types/showdown/index.d.ts @@ -300,7 +300,7 @@ declare namespace Showdown { * @param optionKey * @param string */ - setOption(optionKey: string, value: string): void; + setOption(optionKey: string, value: any): void; /** * Get the option of this Converter instance. From 3448aae7faac8925c2b392db9a91f91381ddb311 Mon Sep 17 00:00:00 2001 From: King Wang Date: Mon, 13 Nov 2017 11:58:51 +0800 Subject: [PATCH 2/2] Update index.d.ts --- types/showdown/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/showdown/index.d.ts b/types/showdown/index.d.ts index cb3b9ae088..3a1accb411 100644 --- a/types/showdown/index.d.ts +++ b/types/showdown/index.d.ts @@ -298,7 +298,7 @@ declare namespace Showdown { * Setting a "local" option only affects the specified Converter object. * * @param optionKey - * @param string + * @param value */ setOption(optionKey: string, value: any): void;