From b2d34c4a37f83933c8ada8cf404e19a5416895cb Mon Sep 17 00:00:00 2001 From: Liam Mann Date: Mon, 6 Mar 2017 20:09:34 +0000 Subject: [PATCH] Added support for setFlavor() - #13302 --- showdown/index.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/showdown/index.d.ts b/showdown/index.d.ts index e73405bfec..70b8d2abca 100644 --- a/showdown/index.d.ts +++ b/showdown/index.d.ts @@ -255,6 +255,14 @@ declare namespace Showdown { * @param extensions */ removeExtension(extensions: ShowdownExtension[] | ShowdownExtension): void; + + /** + * Setting a "local" flavor affects all instances of showdown + * + * @param flavor name + */ + setFlavor(name: string): void; + } interface ConverterStatic { @@ -353,4 +361,11 @@ declare namespace Showdown { * Reset extensions. */ function resetExtensions(): void; + + /** + * Setting a "global" flavor affects all instances of showdown + * + * @param name + */ + function setFlavor(name: string): void; }