Skip to content

exitCode type does not match the one of nodejs 20 ? #82

Open
@kapouer

Description

(ask the cat why there is an initial empty issue - sorry for this)

It looks like there is a problem when building signal-exit on node 20 (on my debian env, with non-pristine nodejs stuff).

src/index.ts(304,34): error TS2345: Argument of type 'string | number | undefined' is not assignable to parameter of type 'number | null | undefined'.

@types/node 20.12.12 indeed has a different definition for process.exitCode.
It might very well be a problem only me is seeing, but it might not !

Miaw

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions