-
-
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
WIP: refactor: refactor types #5483
base: master
Are you sure you want to change the base?
Conversation
How to testgit clone -b test/perf https://github.com/D-Sketon/hexo.git
cd hexo
npm install
npm test |
Pull Request Test Coverage Report for Build 9817883538Details
💛 - Coveralls |
@@ -407,6 +431,11 @@ class Hexo extends EventEmitter { | |||
}); | |||
} | |||
|
|||
/** | |||
* Load configuration and plugins. | |||
* @returns {Promise} |
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.
Let's use TypeScript definition only, the JSDoc types can be omitted.
@@ -10,7 +11,7 @@ export = (ctx: Hexo) => { | |||
renderable: {type: Boolean, default: true} | |||
}); | |||
|
|||
Asset.virtual('source').get(function() { | |||
Asset.virtual('source').get(function(this: AssetSchema) { |
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.
Let's improve the warehouse
's virtual
type to infer this
here.
pending: warehouse new release |
Would you please submit a release PR to warehouse repository? I'll release a new one. Thanks :) |
IMHO, it's better to fix hexojs/warehouse#252 for better type support before release a new version. But I'm not sure how to fix it. |
No description provided.