We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug The syntax highlighter used has a bug with backticks.
To Reproduce Add the following to a file and run typescript-coverage-report. Open the html file and you'll see the highlighting breaks
typescript-coverage-report
/** * see #54 */ export type Path<T, Key extends keyof T = keyof T> = Key extends string ? T[Key] extends Record<string, any> ? | `${Key}.${Path<T[Key], Exclude<keyof T[Key], keyof any[]>> & string}` | `${Key}.${Exclude<keyof T[Key], keyof any[]> & string}` | Key : never : never; export type PathValue<T, P extends Path<T>> = P extends `${infer Key}.${infer Rest}` ? Key extends keyof T ? Rest extends Path<T[Key]> ? PathValue<T[Key], Rest> : never : never : P extends keyof T ? T[P] : never;
Expected behaviour It to not break.
Screenshots
Environment
Additional context Same issue in all browsers leading me to believe it's an issue with the code on generation but I could be wrong.
The text was updated successfully, but these errors were encountered:
I think the ` causes problems to codemirror. I wonder if just upgrading the version fixes the problem.
Sorry, something went wrong.
If I paste the same code in this codemirror playground I get the same. Even trying to upgrade to the latest version of codemirror.
Related? codemirror/codemirror5#5774
@OmgImAlexis yes seems to be the exact issue.
@alexcanessa should be fixed in codemirror/codemirror5@472b458 can you please update.
alexcanessa
No branches or pull requests
Describe the bug
The syntax highlighter used has a bug with backticks.
To Reproduce
Add the following to a file and run
typescript-coverage-report
. Open the html file and you'll see the highlighting breaksExpected behaviour
It to not break.
Screenshots
Environment
Additional context
Same issue in all browsers leading me to believe it's an issue with the code on generation but I could be wrong.
The text was updated successfully, but these errors were encountered: