From 5d3835386b0858e527581c51806bf285f08c4857 Mon Sep 17 00:00:00 2001 From: Guilherme Simoes Date: Sun, 4 Feb 2024 01:46:28 +0000 Subject: [PATCH] Fix blockquote HTML tag being visible to the reader... --- ...23-02-20-creating-a-tuple-from-an-enum-in-typescript.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/_posts/2023-02-20-creating-a-tuple-from-an-enum-in-typescript.md b/_posts/2023-02-20-creating-a-tuple-from-an-enum-in-typescript.md index 96c700f8..534f4657 100644 --- a/_posts/2023-02-20-creating-a-tuple-from-an-enum-in-typescript.md +++ b/_posts/2023-02-20-creating-a-tuple-from-an-enum-in-typescript.md @@ -93,7 +93,12 @@ This solution does require some manual work to keep the array up-to-date with th [^3]: There are already some solutions for evaluating JavaScript at build time such as [Preval] and [Prepack] but I have not used any of them so I can't vouch for them. -[^4]: Do note that older versions of TypeScript do not support recursive type aliases and throw the following error:
Type alias 'UnionToTuple' circularly references itself.
For the magic to work we must be using at least TypeScript v4.1.5. +[^4]: + Do note that older versions of TypeScript do not support recursive type aliases and throw the error: + + > Type alias 'UnionToTuple' circularly references itself. + + For the magic to work we must be using at least TypeScript v4.1.5. [infer]: https://blog.logrocket.com/understanding-infer-typescript/ [Playground]: https://www.typescriptlang.org/play?ts=4.1.5#code/KYDwDg9gTgLgBAYwgOwM72MgrgWzgQSwBMBLCAMWhwEN4BvAKDmbgGUAVAUQCVOB5OABomLVgFVu3PmIByAEQD6AVgUBGYSzYSpsxQHY1GlvnYBZPq2EBfBgxgBPMMDhjkZZOwgBJZDGBRUYAQYdwAeMQA+OABeOAAKMThQP2QiVDhkYAA3fzgAfgzs3IAueOooAHNSsQBKGKjMnKg65Mw0ssrSkmQAM1yvOuiorIgSIny4LzhSxv8AbjtHZ1d3T3YsMAAbYFD2KNiVlE8fPwCgkJRdpJAU9tmoCfvp+JhS9kGovevb9LiFGaKzXqcG6fQeAHURMwCgBtAB0CMOHgg6y2O04IAQm2IO3Ygjg4IiEXx4IAulDnjDSQsGKBILBECh0AQADIshT4MRyLx8BTkPjcUwmVjVNxHFEbbahQikChUWj7OAwikysiUKA0GBwjg8fhGZiquUa2ja7TSeTKQwq4hq+Va8SSc36K2aQ3qzVwkzmSwMakMIA