export type NotFunc = string | number | boolean | object; export type Lazy = T | (() => T); export function resolve_lazy(lazy: Lazy) : T { return typeof lazy === 'function' ? lazy() : lazy; }