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

enh(typescript) add support for satisfies keyword #4058

Merged
merged 1 commit into from
May 25, 2024

Conversation

kisaragi-hiu
Copy link
Contributor

@kisaragi-hiu kisaragi-hiu commented May 25, 2024

Changes

TypeScript added the satisfies operator in TypeScript 4.9, in November 2022. This PR adds support for it.

before after
A TypeScript sample with the satisfies and the as operators. "as" is highlighted while "satisfies" is not. The same TypeScript sample with the satisfies and the as operators. Both "as" and "satisfies" are highlighted.

Checklist

  • Added markup tests
  • Updated the changelog at CHANGES.md

Copy link

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

5 files changed

Total change +10 B

View Changes
file base pr diff
es/core.min.js 8.2 KB 8.2 KB -1 B
es/highlight.min.js 8.2 KB 8.2 KB -1 B
es/languages/typescript.min.js 3.16 KB 3.17 KB +7 B
highlight.min.js 8.23 KB 8.23 KB -2 B
languages/typescript.min.js 3.17 KB 3.18 KB +7 B

@joshgoebel joshgoebel merged commit 4bbf361 into highlightjs:main May 25, 2024
15 checks passed
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.

2 participants