Typescript broken syntax highlighting

Hello Github community,
I’d like to report/highlight an issue, I hope this is the correct place.
I’m developing a new version of a library of mine, which uses Typescript v4.1+ features.

It seems like Github file viewer syntax highlighting does not support Typescript type literal templates: https://www.typescriptlang.org/docs/handbook/2/template-literal-types.html

I’ve searched for a similar issue but didn’t find any (only for other languages).

Here’s the full hightlight-broken code (permalink): https://github.com/alexandercerutti/passkit-generator/blob/fb0fac0cab8ef30c6e43783553937b059070353a/src/PKPass.ts

Is anyone else suffering from this? Thank you.

1 Like