UNPKG

foxts

Version:

Opinionated collection of common TypeScript utils by @SukkaW

6 lines (4 loc) 148 B
type LazyValue<T> = () => Readonly<T>; declare const lazyValue: <T>(cb: () => T) => LazyValue<T>; export { lazyValue }; export type { LazyValue };