mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-29 01:40:51 +00:00
support mermaid
This commit is contained in:
19
client/src/types/mermaid.d.ts
vendored
19
client/src/types/mermaid.d.ts
vendored
@@ -1,19 +0,0 @@
|
||||
declare module "mermaid" {
|
||||
import mermaidAPI from "mermaid";
|
||||
const mermaid: any;
|
||||
export default mermaid;
|
||||
|
||||
// 扩展 mermaidAPI
|
||||
interface MermaidAPI extends mermaidAPI.mermaidAPI {
|
||||
contentLoaded: (
|
||||
targetEl: Element,
|
||||
options?: mermaidAPI.mermaidAPI.Config
|
||||
) => void;
|
||||
}
|
||||
|
||||
const mermaidAPIInstance: MermaidAPI;
|
||||
export default mermaidAPIInstance;
|
||||
}
|
||||
type Dispatch = (action: Action) => void;
|
||||
|
||||
|
Reference in New Issue
Block a user