-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
refactor: refactor types #5271
refactor: refactor types #5271
Conversation
How to testgit clone -b v7.0.0_7 https://github.com/D-Sketon/hexo.git
cd hexo
npm install
npm test |
Pull Request Test Coverage Report for Build 6655790130
💛 - Coveralls |
There are still many types that are any and we need more work after the v7.0.0 release |
maybe we should refactor the type of warehouse first...... |
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.
LGTM now. We can always refine the type later.
The merge-base changed after approval.
The rebase is done. You can merge at any time.😎 |
@@ -61,7 +61,7 @@ function timeTagHelper(date: string | number | Date | moment.Moment, format: str | |||
return `<time datetime="${toISOString(date)}">${this.date(date, format, getLanguage(this), config.timezone)}</time>`; | |||
} | |||
|
|||
function getLanguage(ctx: Hexo) { | |||
function getLanguage(ctx) { |
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.
ctx is not Hexo but Locals with helpers
What does it do?
Screenshots
Pull request tasks