UNPKG
@selfage/once
Version:
latest (1.1.1)
1.1.1
1.1.0
1.0.1
1.0.0
Calling functions only once.
github.com/selfage/once
selfage/once
@selfage/once
/
lazy_instance.d.ts
6 lines
(5 loc)
•
118 B
TypeScript
View Raw
1
2
3
4
5
6
export
declare
class
LazyInstance
<T> {
private
onceCaller;
constructor
(
constructFn
: () => T
);
get
(): T; }