UNPKG

@pkerschbaum/code-oss-file-service

Version:

VS Code ([microsoft/vscode](https://github.com/microsoft/vscode)) includes a rich "`FileService`" and "`DiskFileSystemProvider`" abstraction built on top of Node.js core modules (`fs`, `path`) and Electron's `shell` module. This package allows to use that

20 lines 508 B
/** * A value that is resolved synchronously when it is first needed. */ export interface Lazy<T> { hasValue(): boolean; getValue(): T; map<R>(f: (x: T) => R): Lazy<R>; } export declare class Lazy<T> { private readonly executor; private _didRun; private _value?; private _error; constructor(executor: () => T); /** * Get the wrapped value without forcing evaluation. */ get rawValue(): T | undefined; } //# sourceMappingURL=lazy.d.ts.map