mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
create ParseDirectiveDefinition
type for parsing directives
This commit is contained in:
parent
4320fe7839
commit
c78ad7dbac
@ -68,3 +68,12 @@ export type DrawDefinition = (
|
||||
version: string,
|
||||
diagramObject: Diagram
|
||||
) => void;
|
||||
|
||||
/**
|
||||
* Type for function parse directive from diagram code.
|
||||
*
|
||||
* @param statement -
|
||||
* @param context -
|
||||
* @param type -
|
||||
*/
|
||||
export type ParseDirectiveDefinition = (statement: string, context: string, type: string) => void;
|
||||
|
Loading…
x
Reference in New Issue
Block a user