Files
DefinitelyTyped/types/lazy-value/lazy-value-tests.ts
Ika 30208d0b82 feat(lazy-value): initial commit (#25699)
* feat(lazy-value): initial commit

* docs: add docs
2018-05-11 12:41:43 -07:00

9 lines
206 B
TypeScript

import lazyValue = require("lazy-value");
declare function expensiveComputation(): string;
declare function doSomething(x: string): void;
const val = lazyValue(expensiveComputation);
doSomething(val());