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

Add assertion for TS version #233

Open
danvk opened this issue Jan 26, 2024 · 0 comments
Open

Add assertion for TS version #233

danvk opened this issue Jan 26, 2024 · 0 comments

Comments

@danvk
Copy link
Owner

danvk commented Jan 26, 2024

This text in the preface of Effective TypeScript could be checked:

All samples were verified with https://github.com/danvk/literate-ts[literate-ts] using TypeScript 5.3 beta.

Maybe something like:

All samples were verified with https://github.com/danvk/literate-ts[literate-ts] using TypeScript 5.3 beta.
// verifier:assert-ts-version-in-preceding-paragraph

And this would ensure that "TypeScript 5.3 beta" appears somewhere in that paragraph.

This might make testing new versions annoying.

@danvk danvk added this to the Effective TypeScript 2nd Edition milestone Mar 7, 2024
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

No branches or pull requests

1 participant