chore: Remove lazyLoadedDiagrams from config

This commit is contained in:
Sidharth Vinod 2023-02-19 23:55:22 +05:30
parent 8174c7ca16
commit 543e4de0c8
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
2 changed files with 1 additions and 4 deletions

View File

@ -243,6 +243,7 @@ const checkConfig = (config: MermaidConfig) => {
if (!config) {
return;
}
// @ts-expect-error Properties were removed in v10. Warning should exist.
if (config.lazyLoadedDiagrams || config.loadExternalDiagramsAtStartup) {
issueWarning('LAZY_LOAD_DEPRECATED');
}

View File

@ -3,10 +3,6 @@
import DOMPurify from 'dompurify';
export interface MermaidConfig {
/** @deprecated use mermaid.registerLazyDiagrams instead */
lazyLoadedDiagrams?: string[];
/** @deprecated use mermaid.registerLazyDiagrams instead */
loadExternalDiagramsAtStartup?: boolean;
theme?: string;
themeVariables?: any;
themeCSS?: string;