-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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: update to typescript 3.9 #9594
Conversation
Hey @KaelWD, TravisBuddy Request Identifier: ba3de7f0-cbe5-11ea-acda-6fc69b852bf0 |
9e00958
to
de967ac
Compare
Is this still being worked on? |
Pulse check. |
Still busted, 3.8.3 seems to work though |
Is this still being worked on? v3 work is about to start heavily. |
packages/vuetify/src/components/VDatePicker/mixins/date-picker-table.ts
Outdated
Show resolved
Hide resolved
@@ -117,7 +117,8 @@ describe('VTreeView.ts', () => { // eslint-disable-line max-statements | |||
expect(wrapper.html()).toMatchSnapshot() | |||
}) | |||
|
|||
it('should load children when expanding', async () => { | |||
// TODO: fails with TS 3.9 |
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.
This is quite a lot of coverage loss
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.
Yep
Requesting Final comments from @vuetifyjs/contributors @vuetifyjs/core-team |
@@ -323,7 +323,7 @@ export default mixins( | |||
consoleWarn(`Value must be ${this.isMultiple ? 'an' : 'a'} ${expected}, got ${valueType}`, this) | |||
} | |||
}, | |||
isDateAllowed (value: string) { | |||
isDateAllowed (value: string): 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.
This type annotation can be removed as others were for consistency, can't it?
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.
Same for some ones lower (I think this.$createElement
has types)
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.
Nope, it breaks this
without them. The return type inference seems to be getting worse with each version, you used to be able to have computeds without an explicit return type but now it's needed for methods sometimes too.
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.
😞 okay, that's really bad. I only remember broken this
w/o computed types. Maybe we should open an issue to Vue?
Had to skip a bunch of tests that started failing for no reason, if anyone else wants to have a go at fixing them be my guest.
Types of changes