-
-
Notifications
You must be signed in to change notification settings - Fork 565
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
fix: type errors #802
fix: type errors #802
Conversation
Run & review this pull request in StackBlitz Codeflow. |
✅ Deploy Preview for elk-zone ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
d3db4ae
to
5b9a85b
Compare
5b9a85b
to
1fff9bd
Compare
@@ -15,7 +16,7 @@ const { translation } = useTranslation(status) | |||
class="line-compact" | |||
:content="status.content" | |||
:emojis="status.emojis" | |||
:lang="status.language" | |||
:lang="'language' in status && status.language" |
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.
:lang="'language' in status && status.language" | |
:lang="status?.language" |
?
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.
Can't do that. TS will emit an erorr
I removed
html.d.ts
since this file marks all props as any and fixes all TS errors.I asked Johnson and
html.d.ts
is no longer necessary with the latest Volar /cc @antfuThe main purpose of this PR is to fix TS errors, but I think we should refactor code of search scope. I'll do it in another PR.