-
Notifications
You must be signed in to change notification settings - Fork 99
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
Convert to TypeScript #54
Conversation
@hzoo any comments? |
"rimraf": "^2.5.4" | ||
"rimraf": "^2.5.4", | ||
"ts-jest": "^20.0.4", | ||
"tslint": "^5.3.2", |
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.
I was going to say you can try eslint + typescript parser + prettier now instead but can do that later
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.
yeah, I'd like to postpone that for now and focus on the other commits I still have in the pipeline. I'll keep it in mind for later though.
src/ConfigurationError.ts
Outdated
this.name = "ConfigurationError"; | ||
this.message = message; | ||
this.stack = (new Error()).stack; | ||
export default class ConfigurationError { |
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.
didn't really like extending built-ins ever but ok 😄 (can you remove the comments and code below)?
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.
fixed
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.
looks alright, can still use preset-env to output to node: 4 but ok
since Travis is still 🍏 after addressing the comments I'll merge this and prepare the next PR :) |
The
any
type is still used quite a lot, but this is a first step that allows us to use better type interfaces as discussed via Slack.