Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Skip type injection if template uses TypeScript#440

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ota-meshi merged 8 commits intomainfromfeat/template-ts
Nov 26, 2023

Conversation

@baseballyama
Copy link
Member

@baseballyamabaseballyama commentedNov 23, 2023
edited
Loading

TODO

  • Add various tests.
  • Fix type definition.

Discussion point:

I think somehow we can avoid to generate injection types if there is type information but I couldn't find a way. If we can do this, this is better in terms of performance.

@changeset-bot
Copy link

changeset-botbot commentedNov 23, 2023
edited
Loading

🦋 Changeset detected

Latest commit:136e6e0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
NameType
svelte-eslint-parserMinor

Not sure what this means?Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coveralls
Copy link

coveralls commentedNov 23, 2023
edited
Loading

Pull Request Test Coverage Report forBuild 6965825787

  • 16 of18(88.89%) changed or added relevant lines in3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to91.443%

Changes Missing CoverageCovered LinesChanged/Added Lines%
src/utils/index.ts101283.33%
TotalsCoverage Status
Change from baseBuild 6953169835:-0.1%
Covered Lines:2487
Relevant Lines:2630

💛 -Coveralls

directive:SvelteDirective&{expression:null|ESTree.Expression},
ctx:Context,
typing:string|null,
):(expression:ESTree.Expression)=>ScriptLetCallback<ESTree.Expression>[]{
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

@ota-meshi

Should I useTSESTree here? WriteESTree.Expression | TSESTree.Expression everytime is hassle, and since the type information is only needed in a few places, I thought it would be okay to leave the type information as it is. What do you think?

Copy link
Member

Choose a reason for hiding this comment

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

I think it's OK to leave it as is for now 👍. I think that acorn-typescript nodes and TSESTree are not compatible, so just using TSESTree will not be a complete solution.

@baseballyamabaseballyama marked this pull request as ready for reviewNovember 23, 2023 11:57
Copy link
Member

@ota-meshiota-meshi left a comment

Choose a reason for hiding this comment

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

LGTM!

@ota-meshiota-meshi merged commit726f21f intomainNov 26, 2023
@ota-meshiota-meshi deleted the feat/template-ts branchNovember 26, 2023 23:26
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ota-meshiota-meshiota-meshi approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@baseballyama@coveralls@ota-meshi

[8]ページ先頭

©2009-2025 Movatter.jp