Skip to content

Commit d38b332

Browse files
authored
fix(parser) Resolve issue with missing TS property (#3225)
Using `highlightElement` with version 10.7.2 causes the following TypeScript build error: "error TS2339: Property 'highlightElement' does not exist on type 'HLJSApi'."
1 parent 00233d6 commit d38b332

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## Version 10.7.3 (pending)
2+
3+
- fix(parser) Resolves issue with missing TypeScript property [Jacob Swanner][]
4+
5+
[Jacob Swanner]: https://github.com/jswanner
6+
17
## Version 10.7.2
28

39
This is a patch release. The only change is that deprecation messages

types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ interface PublicApi {
1919
highlightAuto: (code: string, languageSubset?: string[]) => AutoHighlightResult
2020
fixMarkup: (html: string) => string
2121
highlightBlock: (element: HTMLElement) => void
22+
highlightElement: (element: HTMLElement) => void
2223
configure: (options: Partial<HLJSOptions>) => void
2324
initHighlighting: () => void
2425
initHighlightingOnLoad: () => void

0 commit comments

Comments
 (0)