Skip to content

Commit

Permalink
remove ref attribute; fix menu type def
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethnym committed May 22, 2020
1 parent 93dbd20 commit 5054528
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ declare module 'react-bulma-components' {

type HTMLAttributes<K extends keyof JSX.IntrinsicElements> = OmitKeys<
JSX.IntrinsicElements[K],
keyof ModifierProps
keyof ModifierProps | 'ref'
>;

// Credit to https://stackoverflow.com/questions/54049871/how-do-i-type-this-as-jsx-attribute-in-typescript
Expand Down Expand Up @@ -548,8 +548,9 @@ declare module 'react-bulma-components' {
}

export const Menu: BulmaComponent<{}, 'aside'> & {
List: BulmaComponentWithoutRenderAs<MenuListComponentProps, 'ul'>;
Item: BulmaComponent<MenuListItemProps, 'a'>;
List: BulmaComponentWithoutRenderAs<MenuListComponentProps, 'ul'> & {
Item: BulmaComponent<MenuListItemProps, 'a'>;
};
};

// Message component
Expand Down

0 comments on commit 5054528

Please sign in to comment.