mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Added support for setFlavor() - #13302
This commit is contained in:
Vendored
+15
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user