Skip to content

Commit

Permalink
fix(typeahead): specify any type for formatters argument
Browse files Browse the repository at this point in the history
fixes #553

Closes #554
  • Loading branch information
jnizet authored and pkozlowski-opensource committed Aug 8, 2016
1 parent 81cc2ce commit 86c3644
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/typeahead/typeahead.ts
Expand Up @@ -62,7 +62,7 @@ export class NgbTypeahead implements OnInit,
/**
* A function to convert a given value into string to display in the input field
*/
@Input() inputFormatter: (value) => string;
@Input() inputFormatter: (value: any) => string;

/**
* A function to transform the provided observable text into the array of results
Expand All @@ -73,7 +73,7 @@ export class NgbTypeahead implements OnInit,
* A function to format a given result before display. This function should return a formatted string without any
* HTML markup.
*/
@Input() resultFormatter: (value) => string;
@Input() resultFormatter: (value: any) => string;

/**
* A template to display a matching result.
Expand Down

0 comments on commit 86c3644

Please sign in to comment.