import { MutableFunction } from "../types"; export const getValueMutableFunction = async ( data: MutableFunction, currentValue: Type, ) => { return typeof data === "function" // @ts-ignore ? await data(currentValue) : data; };