export const awaitSync = async (val: any | Promise): Promise => { return val instanceof Promise ? await val : val }