Skip to content

Commit

Permalink
Add typescirpt definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
albertandrejev committed Feb 20, 2020
1 parent e4efb11 commit dc3f47b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import * as React from "react";
export interface ActionMenuItem {
readonly title: string;
readonly action: () => void;
}
interface Props {
readonly menuItems: readonly ActionMenuItem[];
}
declare const ActionMenu: React.FunctionComponent<Props>;
export default ActionMenu;
3 changes: 3 additions & 0 deletions packages/medulas-react-components/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import ActionMenu, { ActionMenuItem } from "./components/ActionMenu";
import Avatar from "./components/Avatar";
import Badge from "./components/Badge";
import Block from "./components/Block";
Expand Down Expand Up @@ -48,6 +49,8 @@ export {
} from "./utils/forms/validators";
export { Storybook } from "./utils/storybook";
export {
ActionMenu,
ActionMenuItem,
Avatar,
Back,
Badge,
Expand Down

0 comments on commit dc3f47b

Please sign in to comment.