-
Notifications
You must be signed in to change notification settings - Fork 0
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 #5
Conversation
3caae8d
to
db285e3
Compare
db285e3
to
84c1fc3
Compare
84c1fc3
to
06321b0
Compare
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.
Final comment: the web bundle is huge, like 744 KB. Is this is an issue? We could possibly save bytes by minifying in webpack. Not an issue in mira-dash since we build from typescript.
"moment": "^2.20.1", | ||
"moment-timezone": "^0.5.14", | ||
"rrule-alt": "^2.2.7" | ||
}, | ||
"jest": { | ||
"testEnvironment": "node" |
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.
Jest being silly again jestjs/jest#6766 (comment)
d444cf3
to
9fe3a5c
Compare
@jschr new changes
I think this PR is good to go |
9fe3a5c
to
b25c46d
Compare
Converting this library to typescript so we get typings in mira-dash.
The usage is ambiguous in some places (can use
string
orDate
) but I opted for stricter typings, preferring only one type. In JS projects the code can be used as before, but in TS it is preferred to use the newly exported constants/enums instead of string options for recurrence rules: