diff --git a/src/volume.ts b/src/volume.ts index 878cc115..446fb66e 100644 --- a/src/volume.ts +++ b/src/volume.ts @@ -57,7 +57,7 @@ export type TData = TDataOut | Uint8Array; // Data formats users can give us. export type TFlags = string | number; export type TMode = string | number; // Mode can be a String, although docs say it should be a Number. export type TTime = number | string | Date; -export type TCallback = (error?: IError, data?: TData) => void; +export type TCallback = (error?: IError | null, data?: TData) => void; // type TCallbackWrite = (err?: IError, bytesWritten?: number, source?: Buffer) => void; // type TCallbackWriteStr = (err?: IError, written?: number, str?: string) => void; export type TSymlinkType = 'file' | 'dir' | 'junction';