memfs
Advanced tools
Comparing version 3.4.12 to 3.4.13
/// <reference types="node" /> | ||
export declare type TDataOut = string | Buffer; | ||
export declare type TEncodingExtended = BufferEncoding | 'buffer'; | ||
export type TDataOut = string | Buffer; | ||
export type TEncodingExtended = BufferEncoding | 'buffer'; | ||
export declare const ENCODING_UTF8: BufferEncoding; | ||
export declare function assertEncoding(encoding: string | undefined): void; | ||
export declare function strToEncoding(str: string, encoding?: TEncodingExtended): TDataOut; |
@@ -31,3 +31,3 @@ /// <reference types="node" /> | ||
} | ||
export declare type TFileHandle = PathLike | IFileHandle; | ||
export type TFileHandle = PathLike | IFileHandle; | ||
export interface IPromisesAPI { | ||
@@ -34,0 +34,0 @@ FileHandle: any; |
@@ -1,3 +0,3 @@ | ||
declare type TSetImmediate = (callback: (...args: any[]) => void, args?: any) => void; | ||
type TSetImmediate = (callback: (...args: any[]) => void, args?: any) => void; | ||
declare const _default: TSetImmediate; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
export declare type TSetTimeout = (callback: (...args: any[]) => void, time?: number, args?: any[]) => any; | ||
export type TSetTimeout = (callback: (...args: any[]) => void, time?: number, args?: any[]) => any; | ||
/** | ||
@@ -3,0 +3,0 @@ * `setTimeoutUnref` is just like `setTimeout`, |
import { Node } from './node'; | ||
export declare type TStatNumber = number | bigint; | ||
export type TStatNumber = number | bigint; | ||
/** | ||
@@ -4,0 +4,0 @@ * Statistics about a file/directory, like `fs.Stats`. |
@@ -17,8 +17,8 @@ /// <reference types="node" /> | ||
} | ||
export declare type TFileId = PathLike | number; | ||
export declare type TData = TDataOut | Uint8Array; | ||
export declare type TFlags = string | number; | ||
export declare type TMode = string | number; | ||
export declare type TTime = number | string | Date; | ||
export declare type TCallback<TData> = (error?: IError | null, data?: TData) => void; | ||
export type TFileId = PathLike | number; | ||
export type TData = TDataOut | Uint8Array; | ||
export type TFlags = string | number; | ||
export type TMode = string | number; | ||
export type TTime = number | string | Date; | ||
export type TCallback<TData> = (error?: IError | null, data?: TData) => void; | ||
export declare enum FLAGS { | ||
@@ -44,3 +44,3 @@ r, | ||
} | ||
export declare type TFlagsCopy = typeof constants.COPYFILE_EXCL | typeof constants.COPYFILE_FICLONE | typeof constants.COPYFILE_FICLONE_FORCE; | ||
export type TFlagsCopy = typeof constants.COPYFILE_EXCL | typeof constants.COPYFILE_FICLONE | typeof constants.COPYFILE_FICLONE_FORCE; | ||
export declare function flagsToNumber(flags: TFlags | undefined): number; | ||
@@ -119,3 +119,3 @@ export interface IOptions { | ||
export declare function toUnixTimestamp(time: any): any; | ||
declare type DirectoryContent = string | null; | ||
type DirectoryContent = string | null; | ||
export interface DirectoryJSON { | ||
@@ -122,0 +122,0 @@ [key: string]: DirectoryContent; |
{ | ||
"name": "memfs", | ||
"version": "3.4.12", | ||
"version": "3.4.13", | ||
"description": "In-memory file-system with Node's fs API.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
4475
179597