@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
29 lines • 1 kB
TypeScript
import { VSBuffer } from '../../base/common/buffer';
import { URI, UriComponents } from '../../base/common/uri';
export declare function stringify(obj: any): string;
export declare function parse(text: string): any;
export declare const enum MarshalledId {
Uri = 1,
Regexp = 2,
ScmResource = 3,
ScmResourceGroup = 4,
ScmProvider = 5,
CommentController = 6,
CommentThread = 7,
CommentThreadReply = 8,
CommentNode = 9,
CommentThreadNode = 10,
TimelineActionContext = 11,
NotebookCellActionContext = 12,
TestItemContext = 13
}
export interface MarshalledObject {
$mid: MarshalledId;
}
declare type Deserialize<T> = T extends UriComponents ? URI : T extends VSBuffer ? VSBuffer : T extends object ? Revived<T> : T;
export declare type Revived<T> = {
[K in keyof T]: Deserialize<T[K]>;
};
export declare function revive<T = any>(obj: any, depth?: number): Revived<T>;
export {};
//# sourceMappingURL=marshalling.d.ts.map