From a2290c21e16575d5ae56a2311352eecffba34f15 Mon Sep 17 00:00:00 2001 From: Clement Date: Sat, 20 Apr 2024 11:45:17 +0200 Subject: [PATCH] add astro util --- front/src/libs/AstroUtils.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 front/src/libs/AstroUtils.ts diff --git a/front/src/libs/AstroUtils.ts b/front/src/libs/AstroUtils.ts new file mode 100644 index 0000000..c97a8ed --- /dev/null +++ b/front/src/libs/AstroUtils.ts @@ -0,0 +1,5 @@ +export default class AstroUtils { + public static async wrap(fn: () => T | Promise) { + return await fn() + } +} \ No newline at end of file