From aa354800244bbd63886be30bc90acfc8abbd5923 Mon Sep 17 00:00:00 2001 From: Yuri Sulyma Date: Thu, 10 Oct 2019 15:52:56 -0400 Subject: [PATCH] [mathjax] add menuSettings.renderer (#39005) * Narrower typing for getOption and setOption * Add "div" to CoordsMode (not documented in manual, but present in source code) * Move catchall on/off below ones with explicit names so that handler arguments get correct typing * Narrow type of event parameter for DOMEvent handler * Fix string type accidentally left unnarrowed * Added menuSettings.renderer --- types/mathjax/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/mathjax/index.d.ts b/types/mathjax/index.d.ts index 9e3c94f418..0b0d9e1b25 100644 --- a/types/mathjax/index.d.ts +++ b/types/mathjax/index.d.ts @@ -552,6 +552,8 @@ declare namespace MathJax { mpContext?: boolean; mpMouse?: boolean; + + readonly renderer?: "HTML-CSS" | "CommonHTML" | "PreviewHTML" | "NativeMML" | "SVG" | "PlainSource"; } export interface ErrorSettings {