Skip to content

Commit

Permalink
fix generic typings
Browse files Browse the repository at this point in the history
  • Loading branch information
vutran committed Nov 21, 2017
1 parent 6959f0f commit 5e86c15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ declare namespace Omnibar {
type Extension<T> = FunctionalExtension<T>;

// Renderers
type ResultRenderer = <T>({ item }: { item: T }) => JSX.Element;
type ResultRenderer<T> = ({ item }: { item: T }) => JSX.Element;

interface Props<T> {
// list of extensions
Expand All @@ -35,7 +35,7 @@ declare namespace Omnibar {
// options style on the root element
rootStyle?: React.CSSProperties;
// optional result renderering function
resultRenderer?: ResultRenderer;
resultRenderer?: ResultRenderer<T>;
// optional action override
onAction?: <T>(item: T) => void;
// optional input delay override
Expand Down

0 comments on commit 5e86c15

Please sign in to comment.