Files
mermaid/src/interactionDb.ts
2022-09-05 11:22:17 +02:00

11 lines
258 B
TypeScript

let interactionFunctions: (() => {})[] = [];
export const addFunction = (func: () => {}) => {
interactionFunctions.push(func);
};
export const attachFunctions = () => {
interactionFunctions.forEach((f) => {
f();
});
interactionFunctions = [];
};