typescript-dotnet-core
Version:
A the core classes and utilities of a JavaScript-Friendly .NET Based TypeScript Library.
16 lines (15 loc) • 682 B
TypeScript
/*!
* @author electricessence / https://github.com/electricessence/
* Licensing: MIT https://github.com/electricessence/TypeScript.NET-Core/blob/master/LICENSE.md
*/
import ILazy from "./ILazy";
import { Func } from "./FunctionTypes";
import ResolverBase from "./ResolverBase";
export default class Lazy<T> extends ResolverBase<T> implements ILazy<T> {
constructor(valueFactory: Func<T>, trapExceptions?: boolean, allowReset?: boolean);
get isValueCreated(): boolean;
get value(): T;
equals(other: Lazy<T>): boolean;
valueEquals(other: Lazy<T>): boolean;
static create<T>(valueFactory: Func<T>, trapExceptions?: boolean, allowReset?: boolean): Lazy<T>;
}