Skip to content
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

Merged
merged 2 commits into from
Jan 5, 2023
Merged

fix: type errors #802

merged 2 commits into from
Jan 5, 2023

Conversation

sxzz
Copy link
Member

@sxzz sxzz commented Jan 5, 2023

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 @antfu

The 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.

@stackblitz
Copy link

stackblitz bot commented Jan 5, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify
Copy link

netlify bot commented Jan 5, 2023

Deploy Preview for elk-zone ready!

Name Link
🔨 Latest commit 1fff9bd
🔍 Latest deploy log https://app.netlify.com/sites/elk-zone/deploys/63b6e15c55d6ee0008300976
😎 Deploy Preview https://deploy-preview-802--elk-zone.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@sxzz sxzz added the c: refactor PR that affects the runtime behavior, but doesn't add new features or fixes bugs label Jan 5, 2023
@@ -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"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
:lang="'language' in status && status.language"
:lang="status?.language"

?

Copy link
Member Author

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

@antfu antfu merged commit acdb94d into main Jan 5, 2023
@antfu antfu deleted the refactor/type-errors branch January 5, 2023 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: refactor PR that affects the runtime behavior, but doesn't add new features or fixes bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants