import { Getter, isFunction } from '@blackglory/prelude' export function getValue(val: T | Getter): T { if (isFunction(val)) { return val() } else { return val } }