-
Notifications
You must be signed in to change notification settings - Fork 300
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
chore: types/node upgrade #2019
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ const { | |
STEP_SUB_TEMPLATE | ||
} = executeSteps; | ||
|
||
function handleSubTemplate(tkId: string, step, result: any, xt: any, cb: Function) { | ||
function handleSubTemplate(tkId: string, step, result: any, xt: any, cb: any) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we type param #2 (step) ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if we don't want to use Function (okay, it's frowned upon) .. lets define it a bit more type callback = (...args: any) => void;
function handleSubTemplate(tkId: string, step, result: any, xt: any, cb: callback) { or inline... function handleSubTemplate(tkId: string, step, result: any, xt: any, cb: (...args: any) => void) { also - could add some return types to the function's signature .. |
||
if (!result) { | ||
return cb(); | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -680,6 +680,5 @@ | |
"shouldPublish": false, | ||
"skipRushCheck": true | ||
} | ||
|
||
] | ||
} |
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.
lets define this a bit more?
or inline...
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.
Sounds good. Let me create a PR 👍