export default (val: T | (() => T)) => val instanceof Function ? val() : val;