Skip to content

Commit

Permalink
Add searchOpts to configuration type definition (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Willer authored and mrsweaters committed Jan 13, 2020
1 parent b8df014 commit e9e46ea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tributejs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ export type TributeItem<T extends {}> = {
string: string
}

export type TributeSearchOpts = {
pre: string
post: string
skip: boolean
}

export type TributeCollection<T extends {}> = {
// symbol that starts the lookup
trigger?: string
Expand Down Expand Up @@ -59,6 +65,9 @@ export type TributeCollection<T extends {}> = {

//specify whether to put Tribute in autocomplete mode
autocompleteMode?: boolean

// Customize the elements used to wrap matched strings within the results list
searchOpts?: TributeSearchOpts
}

export type TributeOptions<T> = TributeCollection<T> | {
Expand Down

0 comments on commit e9e46ea

Please sign in to comment.