-
Notifications
You must be signed in to change notification settings - Fork 734
Feat/date time picker ts #1694
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
Feat/date time picker ts #1694
Conversation
import View from '../view'; | ||
import Button from '../button'; | ||
|
||
|
||
const MODES = { |
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 think this can be removed.
I've tried renaming the screen to tsx
and I think you need to edit the index.d.ts
(remove manual typings and link the auto generated types).
I still get errors in the screen, but I did not dig deeper into 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.
Fixed.
I moved the example screen to ts
I fixed the export in generatedTypes/index
and fix various errors in the example screen
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.
Approving, you can switch MODES
to type MODES = 'date' | 'time';
if you like.
Description
This PR is a little big, but there's nothing exciting about it.. this is what I did
// @ts-nocheck
to avoid TS checking// @ts-nocheck
to avoid TS checkingheight
propChangelog
Convert DateTimePicker component to TS