New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node version upgrade to 20 #38
Node version upgrade to 20 #38
Conversation
Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com>
src/api-utils.ts
Outdated
interface Error { | ||
status?: number; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it will be better to change it to this:
interface ErrorStatus extends Error {
status: number;
}
because TypeScript already has interface Error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implemented the change
@@ -14,19 +14,23 @@ interface GitRef { | |||
}; | |||
} | |||
|
|||
interface ErrorStatus extends Error { | |||
status?: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor comment and please correct me if I'm wrong, but I think we can also remove the question mark here now that the suggested change has been implemented?
Description:
Changes added for the node-version upgrade to node20.
Related issue:
Feature Request