Skip to content

refactor: improve type safety by replacing any types#366

Open
HoshinoIzumi wants to merge 11 commits into
mainfrom
any-type-annotation
Open

refactor: improve type safety by replacing any types#366
HoshinoIzumi wants to merge 11 commits into
mainfrom
any-type-annotation

Conversation

@HoshinoIzumi
Copy link
Copy Markdown
Collaborator

…terfaces

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 13, 2026

Test Results

24 tests   24 ✅  2s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 1c7b634.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 13, 2026

Package Line Rate Branch Rate Complexity Health
BlotzTask 3% 14% 1590
BlotzTask 3% 14% 1590
Summary 3% (1812 / 63156) 14% (196 / 1424) 3180

Comment thread blotztask-mobile/src/feature/notes/components/note-time-picker-sheet.tsx Outdated
alert: null,
isDeadline: false,
deadlineDate: now,
deadlineTime: now,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason add these default values?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since useForm<FormValues> was changed into useForm<TaskFormField>, which makes defaultvalue necessary, otherwise there will be other errors, although it is confusing when time picker sheet doesnt have anything to do with title, deadline, alert, it is a way to solve the error.

An alternative approach would be to extract a shared subset interface (e.g. TaskTimeFields) so that ReminderTab/EventTab only depend on time-related fields, avoiding coupling to unrelated fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants