Skip to content

Commit

Permalink
fix: 🐛 adjust definition of TCallback to accept null for error
Browse files Browse the repository at this point in the history
…parameter
  • Loading branch information
G-Rath committed Jul 6, 2019
1 parent ac78c50 commit aedcbda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/volume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<TData> = (error?: IError, data?: TData) => void;
export type TCallback<TData> = (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';
Expand Down

0 comments on commit aedcbda

Please sign in to comment.