Skip to content

Commit

Permalink
Add type
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriangalliat committed Aug 26, 2021
1 parent b757020 commit 90ad3d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ declare namespace anchor {
placement?: 'before' | 'after'
}

export interface LinkInsideHeaderPermalinkOptions extends PermalinkOptions {
space?: boolean,
placement?: 'before' | 'after',
ariaHidden?: boolean
}

export interface AriaHiddenPermalinkOptions extends PermalinkOptions {
space?: boolean,
placement?: 'before' | 'after'
Expand Down Expand Up @@ -49,6 +55,7 @@ declare namespace anchor {
export const permalink: {
headerLink: () => PermalinkGenerator
linkAfterHeader: (opts: LinkAfterHeaderPermalinkOptions) => PermalinkGenerator
linkInsideHeader: (opts: LinkInsideHeaderPermalinkOptions) => PermalinkGenerator
ariaHidden: (opts: AriaHiddenPermalinkOptions) => PermalinkGenerator
};
}
Expand Down

0 comments on commit 90ad3d0

Please sign in to comment.