create ParseDirectiveDefinition type for parsing directives

This commit is contained in:
Yokozuna59 2023-06-12 21:11:34 +03:00
parent 4320fe7839
commit c78ad7dbac

View File

@ -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;