Skip to content

Commit

Permalink
Fix permalink generator type to return void instead of string (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriangalliat committed May 5, 2022
1 parent a461303 commit 72eee65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [8.6.3] - 2021-05-05
* Fix permalink generator type to return `void` instead of `string`. ([#115])

## [8.6.2] - 2021-04-08
* Fix types to reflect optional permalink arguments and properties. ([#114])

Expand Down Expand Up @@ -224,7 +227,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [1.0.0] - 2015-03-18
* Initial release.

[Unreleased]: https://github.com/valeriangalliat/markdown-it-anchor/compare/v8.6.2...HEAD
[Unreleased]: https://github.com/valeriangalliat/markdown-it-anchor/compare/v8.6.3...HEAD
[8.6.3]: https://github.com/valeriangalliat/markdown-it-anchor/compare/v8.6.2...v8.6.3
[8.6.2]: https://github.com/valeriangalliat/markdown-it-anchor/compare/v8.6.1...v8.6.2
[8.6.1]: https://github.com/valeriangalliat/markdown-it-anchor/compare/v8.6.0...v8.6.1
[8.6.0]: https://github.com/valeriangalliat/markdown-it-anchor/compare/v8.5.0...v8.6.0
Expand Down Expand Up @@ -328,5 +332,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
[#110]: https://github.com/valeriangalliat/markdown-it-anchor/issues/110
[#112]: https://github.com/valeriangalliat/markdown-it-anchor/issues/112
[#114]: https://github.com/valeriangalliat/markdown-it-anchor/pull/114
[#115]: https://github.com/valeriangalliat/markdown-it-anchor/issues/115

[`6fcc502`]: https://github.com/valeriangalliat/markdown-it-anchor/commit/6fcc50233d593458aa883e5b515cb8311114555c
2 changes: 1 addition & 1 deletion types/index.d.ts
Expand Up @@ -36,7 +36,7 @@ declare namespace anchor {
placement?: 'before' | 'after'
}

export type PermalinkGenerator = (slug: string, opts: PermalinkOptions, state: State, index: number) => string;
export type PermalinkGenerator = (slug: string, opts: PermalinkOptions, state: State, index: number) => void;

export interface AnchorInfo {
slug: string;
Expand Down

0 comments on commit 72eee65

Please sign in to comment.