memfs
Advanced tools
Comparing version 4.4.0 to 4.5.0
@@ -43,8 +43,8 @@ /// <reference types="node" /> | ||
export declare function toUnixTimestamp(time: any): any; | ||
type DirectoryContent = string | null; | ||
export interface DirectoryJSON { | ||
[key: string]: DirectoryContent; | ||
type DirectoryContent = string | Buffer | null; | ||
export interface DirectoryJSON<T extends DirectoryContent = DirectoryContent> { | ||
[key: string]: T; | ||
} | ||
export interface NestedDirectoryJSON { | ||
[key: string]: DirectoryContent | NestedDirectoryJSON; | ||
export interface NestedDirectoryJSON<T extends DirectoryContent = DirectoryContent> { | ||
[key: string]: T | NestedDirectoryJSON; | ||
} | ||
@@ -111,3 +111,3 @@ /** | ||
private _toJSON; | ||
toJSON(paths?: PathLike | PathLike[], json?: {}, isRelative?: boolean, asBuffer?: boolean): DirectoryJSON; | ||
toJSON(paths?: PathLike | PathLike[], json?: {}, isRelative?: boolean, asBuffer?: boolean): DirectoryJSON<string | null>; | ||
fromJSON(json: DirectoryJSON, cwd?: string): void; | ||
@@ -114,0 +114,0 @@ fromNestedJSON(json: NestedDirectoryJSON, cwd?: string): void; |
{ | ||
"name": "memfs", | ||
"version": "4.4.0", | ||
"version": "4.5.0", | ||
"description": "In-memory file-system with Node's fs API.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
909761