11 lines
158 B
Markdown
11 lines
158 B
Markdown
## lazy-val
|
|
|
|
Lazy value.
|
|
|
|
```typescript
|
|
class Lazy<T> {
|
|
constructor(creator: () => Promise<T>)
|
|
readonly hasValue: boolean
|
|
value: Promise<T>
|
|
}
|
|
``` |