-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Typescript in svelte in builder #15063
Typescript in svelte in builder #15063
Conversation
QA Wolf here! As you write new code it's important that your test coverage is keeping up. |
export let value = null | ||
export let disabled = false | ||
export let readonly = false | ||
export let error = null | ||
export let appendTo = undefined | ||
export let ignoreTimezones = false |
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.
Unused?
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.
Yes. And typescript complained about that 😄
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've actually removed this file altogether in my branch. BBUI is consumed by frontend-core so I saw the same issues, and this file is actually entirely unused. You can leave it in though - I can deal with the small conflict.
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 had the feeling that it was not used at all. I just did not want to remove it just in case some old app was using it somehow 🪄
@@ -18,8 +18,6 @@ | |||
export let palette | |||
export let c1, c2, c3, c4, c5 | |||
|
|||
// Area specific props | |||
export let area |
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.
Unused?
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.
LGTM - very nice, didn't require much configuration change!
Adding svelte checks to validate ts on build
Description
Enabling typescript on svelte in the builder. This PR only sets the right configuration for enabling using typescript in svelte, making use of it in a file in the builder and one in bbui.
This PR will be followed by another enabling using typescript instead of js, and further refactors of more files.
Some of the complex types had been just mapped to
any
to keep this one simple. Better typing across the stack will follow.Launchcontrol
Enable ts in svelte in the builder
Feature branch env
Feature Branch Link