TypeScript: Not highlighting custom class / interface types
Open
Nobody has claimed this yet.
enhancement
language-definitions
- Dominant language
- JavaScript
- Stars
- 13k
- Forks
- 1.4k
- Avg merge
- 15h 36m
- Merged PRs (30d)
- 3
Description
Using: prismjs@1.14.0
Does not continue to highlight custom class / interface types after they are initially defined.
Example, BigData is not highlighted:

Also, a StackBlitz.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the TypeScript example from the issue or its linked StackBlitz and inspect how custom class and interface names are highlighted after their definitions. Done means names such as BigData continue to receive the expected highlighting in the reproduced case, with a regression test covering it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100