Skip to content

readFileSync options can be null #46

@cjbarth

Description

@cjbarth

export function readFileSync(filename: string, options: ReadFileOptions): Buffer;
and
export function readFile(filename: string, options: ReadFileOptions, callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void): void;

should be:

export function readFileSync(filename: string, options: ReadFileOptions | null): Buffer;
and
export function readFile(filename: string, options: ReadFileOptions | null, callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void): void;

I can create a PR if desired.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions