mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-10-31 10:54:15 +01:00 
			
		
		
		
	fix: Tsconfig
This commit is contained in:
		| @@ -30,12 +30,14 @@ import { isDetailedError } from './utils'; | ||||
|  * ``` | ||||
|  * | ||||
|  * Renders the mermaid diagrams | ||||
|  * | ||||
|  * @param config | ||||
|  * @param nodes | ||||
|  * @param callback | ||||
|  */ | ||||
| const init = function ( | ||||
|   config?: MermaidConfig, | ||||
|   // eslint-disable-next-line no-undef | ||||
|   nodes?: string | HTMLElement | NodeListOf<HTMLElement>, | ||||
|   callback?: Function | ||||
| ) { | ||||
| @@ -54,6 +56,7 @@ const init = function ( | ||||
|  | ||||
| const initThrowsErrors = function ( | ||||
|   config?: MermaidConfig, | ||||
|   // eslint-disable-next-line no-undef | ||||
|   nodes?: string | HTMLElement | NodeListOf<HTMLElement>, | ||||
|   callback?: Function | ||||
| ) { | ||||
| @@ -156,13 +159,7 @@ if (typeof document !== 'undefined') { | ||||
|   /*! | ||||
|    * Wait for document loaded before starting the execution | ||||
|    */ | ||||
|   window.addEventListener( | ||||
|     'load', | ||||
|     function () { | ||||
|       contentLoaded(); | ||||
|     }, | ||||
|     false | ||||
|   ); | ||||
|   window.addEventListener('load', contentLoaded, false); | ||||
| } | ||||
|  | ||||
| /** | ||||
|   | ||||
| @@ -13,7 +13,8 @@ | ||||
|     /* Language and Environment */ | ||||
|     "target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, | ||||
|     "lib": [ | ||||
|       "ES2021" | ||||
|       "ES2021", | ||||
|       "DOM" | ||||
|     ] /* Specify a set of bundled library declaration files that describe the target runtime environment. */, | ||||
|     // "jsx": "preserve",                                /* Specify what JSX code is generated. */ | ||||
|     // "experimentalDecorators": true,                   /* Enable experimental support for TC39 stage 2 draft decorators. */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sidharth Vinod
					Sidharth Vinod