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

generate TS with satisfies #8001

Merged
merged 3 commits into from
Dec 9, 2022
Merged

generate TS with satisfies #8001

merged 3 commits into from
Dec 9, 2022

Conversation

Rich-Harris
Copy link
Member

would be nice to get this change in as it reduces the need for proxy types. the site won't build though, because (I think) shiki-twoslash is using an older TypeScript and doesn't know how to deal with the newfangled syntax. A cursory glance didn't show me how to fix it so I'm just going to leave this here for a moment

@changeset-bot
Copy link

changeset-bot bot commented Dec 8, 2022

⚠️ No Changeset found

Latest commit: dfd8fbd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@benmccann
Copy link
Member

It looks like shiki/twoslash does not bundle typescript, so should just use the version we have. But perhaps we will need to ask @orta to add support for the satisfies keyword?

@orta
Copy link

orta commented Dec 9, 2022

I can't see the deploy error messages, but to my knowledge there shouldn't be any issues with twoslash accepting satisfies as a keyword - twoslash doesn't put a constraint on TS I think, so it should just accept whatever version is in the repo

Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

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

Had nothing to do with Shiki, just some syntax error and then new errors popping up that needed silencing

@dummdidumm dummdidumm merged commit a22fb66 into satisfies Dec 9, 2022
@dummdidumm dummdidumm deleted the satisfying-docs branch December 9, 2022 12:28
Rich-Harris added a commit that referenced this pull request Dec 9, 2022
* Use satifies operator

* generate TS with `satisfies` (#8001)

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants