-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix: add types to help with required nodemon usage #2204
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
Conversation
✅ Deploy Preview for nodemon ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
🎉 This PR is included in version 3.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
🤑
restartable?: false | String; | ||
colours?: Boolean; |
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.
These should be the primitive types, not the object wrappers.
restartable?: false | String; | |
colours?: Boolean; | |
restartable?: false | string; | |
colours?: boolean; |
message: String; | ||
/** contains the terminal escape codes to add colour, plus the "[nodemon]" prefix */ | ||
colour: String; |
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.
message: String; | |
/** contains the terminal escape codes to add colour, plus the "[nodemon]" prefix */ | |
colour: String; | |
message: string; | |
/** contains the terminal escape codes to add colour, plus the "[nodemon]" prefix */ | |
colour: string; |
// TODO: Define the type of NodemonEventConfig | ||
type NodemonEventConfig = any; | ||
|
||
interface NodemonSettings { |
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.
could add the jsdoc from the old DefinitelyTyped
types for improved developer experience, as seen here:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/98e6d36d1a9b2c7ec918855454ef6b8642f8cf84/types/nodemon/index.d.ts#L116-L119
Hopefully helps devs use nodemon as required and adds some advice in tools like VS Code.