tsConversion: logger

This commit is contained in:
Sidharth Vinod
2022-08-21 00:59:54 +05:30
parent c9cd56914f
commit 896154d89f
2 changed files with 22 additions and 23 deletions

10
src/interactionDb.ts Normal file
View File

@@ -0,0 +1,10 @@
let interactionFunctions: (() => {})[] = [];
export const addFunction = (func: () => {}) => {
interactionFunctions.push(func);
};
export const attachFunctions = () => {
interactionFunctions.forEach((f) => {
f();
});
interactionFunctions = [];
};