Skip to content

Commit

Permalink
fix(parser) Resolve issue with missing TS property (#3225)
Browse files Browse the repository at this point in the history
Using `highlightElement` with version 10.7.2 causes the following
TypeScript build error: "error TS2339: Property 'highlightElement' does
not exist on type 'HLJSApi'."
  • Loading branch information
jswanner authored Jun 4, 2021
1 parent 00233d6 commit d38b332
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Version 10.7.3 (pending)

- fix(parser) Resolves issue with missing TypeScript property [Jacob Swanner][]

[Jacob Swanner]: https://github.com/jswanner

## Version 10.7.2

This is a patch release. The only change is that deprecation messages
Expand Down
1 change: 1 addition & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ interface PublicApi {
highlightAuto: (code: string, languageSubset?: string[]) => AutoHighlightResult
fixMarkup: (html: string) => string
highlightBlock: (element: HTMLElement) => void
highlightElement: (element: HTMLElement) => void
configure: (options: Partial<HLJSOptions>) => void
initHighlighting: () => void
initHighlightingOnLoad: () => void
Expand Down

0 comments on commit d38b332

Please sign in to comment.