Skip to content

fix: change getStatus() return type to string#493

Open
Frederick888 wants to merge 1 commit into
node-cron:mainfrom
Frederick888:getStatus-no-promise
Open

fix: change getStatus() return type to string#493
Frederick888 wants to merge 1 commit into
node-cron:mainfrom
Frederick888:getStatus-no-promise

Conversation

@Frederick888
Copy link
Copy Markdown

Promise<string> was added in [1] but its implementations only ever
returned strings. I suspect it was just caught in the similar changes to
other methods.

[1] f10ad8a#diff-1d52084a4265cb2ab89812078b6452920da6eec1136eb9268bfd710b73aab563L54


Though it's perhaps better to export and use TaskState instead of
string while we are at it? Happy to do this if you agree.

Promise<string> was added in [1] but its implementations only ever
returned strings. I suspect it was just caught in the similar changes to
other methods.

[1] node-cron@f10ad8a#diff-1d52084a4265cb2ab89812078b6452920da6eec1136eb9268bfd710b73aab563L54
@Frederick888 Frederick888 marked this pull request as ready for review November 5, 2025 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant