From 610af7f51558e7f899bba0fd90d66b9c7de669a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <michael@minelli.me> Date: Fri, 11 Aug 2023 23:07:37 +0200 Subject: [PATCH] Add ExerciceRunningEvents => Describe events of a EventEmitter --- types/Dojo/ExerciceRunningEvents.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 types/Dojo/ExerciceRunningEvents.ts diff --git a/types/Dojo/ExerciceRunningEvents.ts b/types/Dojo/ExerciceRunningEvents.ts new file mode 100644 index 0000000..c576f01 --- /dev/null +++ b/types/Dojo/ExerciceRunningEvents.ts @@ -0,0 +1,9 @@ +interface ExerciceRunningEvents { + step: (name: string, message: string) => void; + endStep: (stepName: string, message: string, error: boolean) => void; + logs: (log: string, error: boolean, displayable: boolean) => void; + finished: (success: boolean, exitCode: number) => void; +} + + +export default ExerciceRunningEvents; \ No newline at end of file -- GitLab