@@ -105,7 +105,6 @@ export interface MathJaxObject extends MJObject {
105105 document : MATHDOCUMENT ;
106106 promise : Promise < void > ;
107107 rerenderPromise : Promise < void > ;
108- /* tslint:disable:jsdoc-require */
109108 registerConstructor ( name : string , constructor : any ) : void ;
110109 useHandler ( name : string , force ?: boolean ) : void ;
111110 useAdaptor ( name : string , force ?: boolean ) : void ;
@@ -125,7 +124,6 @@ export interface MathJaxObject extends MJObject {
125124 getOutputJax ( ) : OUTPUTJAX ;
126125 getAdaptor ( ) : DOMADAPTOR ;
127126 getHandler ( ) : HANDLER ;
128- /* tslint:enable */
129127 } ;
130128 [ name : string ] : any ; // Needed for the methods created by the startup module
131129}
@@ -320,8 +318,10 @@ export namespace Startup {
320318 * typesetting, if needed.
321319 *
322320 * Setting Mathjax.startup.pageReady in the configuration will override this.
321+ *
322+ * @returns {Promise<void> } Promise resolving when page is ready to process.
323323 */
324- export function defaultPageReady ( ) {
324+ export function defaultPageReady ( ) : Promise < void > {
325325 return (
326326 CONFIG . loadAllFontFiles && ( output as COMMONJAX ) . font
327327 ? ( output as COMMONJAX ) . font . loadDynamicFiles ( )
@@ -338,9 +338,10 @@ export namespace Startup {
338338 /**
339339 * Perform the typesetting with handling of retries
340340 *
341- * @param elements The list of elements to typeset
341+ * @param {any[] } elements The list of elements to typeset
342+ * @returns {Promise<void> } The promise that resolves when elements are typeset
342343 */
343- export function typesetPromise ( elements : any [ ] ) {
344+ export function typesetPromise ( elements : any [ ] ) : Promise < void > {
344345 document . options . elements = elements ;
345346 document . reset ( ) ;
346347 return mathjax . handleRetriesFor ( ( ) => {
0 commit comments