feat: improve types #2368

Merged
konrad merged 1 commits from dpschen/vikunja:fix/type-issues into main 2024-06-12 10:04:29 +00:00
Member

This improves several types and removes some typescript errors.

This improves several types and removes some typescript errors.
dpschen force-pushed fix/type-issues from ec17bd8004 to decad1345d 2024-06-11 19:47:17 +00:00 Compare
Member

Hi dpschen!

Thank you for creating a PR!

I've deployed the frontend changes of this PR on a preview environment under this URL: https://2368-fix-type-issues--vikunja-frontend-preview.netlify.app

You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somewhere. The easiest to use is https://try.vikunja.io/.

This preview does not contain any changes made to the api, only the frontend.

Have a nice day!

Beep boop, I'm a bot.

Hi dpschen! Thank you for creating a PR! I've deployed the frontend changes of this PR on a preview environment under this URL: https://2368-fix-type-issues--vikunja-frontend-preview.netlify.app You can use this url to view the changes live and test them out. You will need to manually connect this to an api running somewhere. The easiest to use is https://try.vikunja.io/. This preview does not contain any changes made to the api, only the frontend. Have a nice day! > Beep boop, I'm a bot.
konrad reviewed 2024-06-11 21:13:26 +00:00
@ -1,4 +1,4 @@
export const DATEFNS_DATE_FORMAT_KEBAB = 'yyyy-LL-dd'
export const DATEFNS_DATE_FORMAT_KEBAB = 'yyyy-LL-dd' as const
Owner

Out of interest: What is the as const good for when the const is already declared as const?

Out of interest: What is the `as const` good for when the const is already declared as const?
konrad merged commit bc897a4503 into main 2024-06-12 10:04:29 +00:00
konrad deleted branch fix/type-issues 2024-06-12 10:04:30 +00:00
konrad referenced this issue from a commit 2024-06-12 10:04:39 +00:00
Sign in to join this conversation.
No description provided.